File: xml.go

package info (click to toggle)
golang-github-gofiber-utils 2.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 432 kB
  • sloc: makefile: 40
file content (9 lines) | stat: -rw-r--r-- 330 bytes parent folder | download
1
2
3
4
5
6
7
8
9
package utils

// XMLMarshal returns the XML encoding of v.
type XMLMarshal func(v any) ([]byte, error)

// XMLUnmarshal parses the XML-encoded data and stores the result
// in the value pointed to by v. If v is nil or not a pointer,
// Unmarshal returns an InvalidUnmarshalError.
type XMLUnmarshal func(data []byte, v any) error