mirror of
https://github.com/gofiber/fiber.git
synced 2025-05-02 13:42:22 +00:00
16 lines
211 B
Go
16 lines
211 B
Go
package binder
|
|
|
|
import (
|
|
"encoding/xml"
|
|
)
|
|
|
|
type xmlBinding struct{}
|
|
|
|
func (*xmlBinding) Name() string {
|
|
return "xml"
|
|
}
|
|
|
|
func (*xmlBinding) Bind(body []byte, out any) error {
|
|
return xml.Unmarshal(body, out)
|
|
}
|