Fix struct tagging by just using string keys

This commit is contained in:
comp500
2019-05-11 14:40:59 +01:00
parent ef98591d02
commit f23f99b5be
3 changed files with 28 additions and 15 deletions

View File

@@ -5,7 +5,7 @@ var UpdateParsers = make(map[string]UpdateParser)
// 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)
ParseUpdate(map[string]interface{}) (Updater, error)
}
// Updater checks for and does updates on a mod