package bloat import ( "encoding/xml" "fmt" ) func (b *Bloat[T]) marshal(body T) ([]byte, error) { final, err := xml.Marshal(body) if err != nil { fmt.Println("marshal error") fmt.Println(err) } return final, err }