chore: generate (un)marshalers

This commit is contained in:
andig 2024-03-29 12:21:04 +01:00
parent 6446d920e9
commit 48666a59c6
5 changed files with 31 additions and 32 deletions

View file

@ -2,15 +2,7 @@ package api
type Feature int
func (f *Feature) UnmarshalText(text []byte) error {
feat, err := FeatureString(string(text))
if err == nil {
*f = feat
}
return err
}
//go:generate enumer -type Feature
//go:generate enumer -type Feature -text
const (
_ Feature = iota
Offline