xml.go 330 B

123456789
  1. package utils
  2. // XMLMarshal returns the XML encoding of v.
  3. type XMLMarshal func(v any) ([]byte, error)
  4. // XMLUnmarshal parses the XML-encoded data and stores the result
  5. // in the value pointed to by v. If v is nil or not a pointer,
  6. // Unmarshal returns an InvalidUnmarshalError.
  7. type XMLUnmarshal func(data []byte, v any) error