Refactor things into separate files

This commit is contained in:
2025-01-11 20:09:47 +01:00
parent c691125b10
commit 20ede32890
3 changed files with 223 additions and 189 deletions

17
addonService.go Normal file
View File

@@ -0,0 +1,17 @@
package main
type AddonService struct {
Addons []*Addon
}
var addons = []*Addon{
NewAddon("Channeler", "https://git.site.quack-lab.dev/dave/wow_channeler"),
NewAddon("Heimdall", "https://git.site.quack-lab.dev/dave/wow-Heimdall"),
NewAddon("Dechickenator", "https://git.site.quack-lab.dev/dave/wow_dechickenator"),
}
func NewAddonService() *AddonService {
return &AddonService{
Addons: addons,
}
}