Move generics to their own file

This commit is contained in:
2025-03-21 15:23:11 -05:00
parent a6bfea6b65
commit ae532dd193
2 changed files with 20 additions and 14 deletions

20
wow/gamedata/generics.go Normal file
View File

@@ -0,0 +1,20 @@
package gamedata
const (
UP string = "UP"
DOWN string = "DOWN"
)
type href struct {
Href string `json:"href"`
}
type idAndKey struct {
ID int `json:"id"`
Key href `json:"key"`
}
type idAndType struct {
ID int `json:"id"`
Type string `json:"type"`
}