bloat/unmarshal.go
2025-04-07 01:36:55 -06:00

18 lines
274 B
Go

package bloat
import "encoding/xml"
/*
types to decode:
.phish (identity)
.bivouac (decisions)
.cicada (indexes/feeds)
.crew (groups)
.mores (rules)
*/
func (b *Bloat[T]) Unmarshal(plain []byte) (T, error) {
err := xml.Unmarshal(plain, b.Obj)
return b.Obj, err
}