Command to open page in browser; refactoring

This commit is contained in:
comp500
2019-06-14 22:35:34 +01:00
parent ebc2115b41
commit 91693cd3eb
6 changed files with 208 additions and 159 deletions

View File

@@ -85,3 +85,9 @@ func (m Mod) Write() (string, string, error) {
hashString := hex.EncodeToString(h.Sum(nil))
return "sha256", hashString, err
}
// GetParsedUpdater can be used to retrieve updater-specific information after parsing a mod file
func (m Mod) GetParsedUpdater(updaterName string) (Updater, bool) {
upd, ok := m.updaters[updaterName]
return upd, ok
}