mirror of
https://github.com/packwiz/packwiz.git
synced 2025-10-14 15:04:32 +02:00
WIP curseforge integration
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
package core
|
||||
// UpdateParsers stores all the update parsers that packwiz can use. Add your own update systems to this map.
|
||||
var UpdateParsers map[string]UpdateParser = make(map[string]UpdateParser)
|
||||
var UpdateParsers = make(map[string]UpdateParser)
|
||||
|
||||
// UpdateParser takes an unparsed interface{}, and returns an Updater for a mod file
|
||||
// UpdateParser takes an unparsed interface{} (as a map[string]interface{}), and returns an Updater for a mod file.
|
||||
// This can be done using the mapstructure library or your own parsing methods.
|
||||
type UpdateParser interface {
|
||||
ParseUpdate(interface{}) (Updater, error)
|
||||
}
|
||||
|
Reference in New Issue
Block a user