1
0
mirror of https://github.com/gofiber/fiber.git synced 2025-04-28 05:36:44 +00:00
M. Efe Çetin eacde70294
v3 (feature): initial support for binding ()
*  v3 (feature): initial support for binding

*  v3 (feature): initial support for binding 
use pointer/references instead of copies

*  v3 (feature): initial support for binding
embed bind into the ctx

*  v3 (feature): initial support for binding
- add URI binder.

*  v3 (feature): initial support for binding
- add response header binder.

*  v3 (feature): initial support for binding
- add response header binder.

*  v3 (feature): initial support for binding
- add cookie binder.

*  v3 (feature): initial support for binding
- custom binder support for body binding.
- test case for custom binder.

*  v3 (feature): initial support for binding
- add map[string][]string & map[string]string support for binders.

*  v3 (feature): initial support for binding
- fix Test_Bind_Header_Map

*  v3 (feature): initial support for binding
- Functional Should/Must

*  v3 (feature): initial support for binding
- custom struct validator support.

*  v3 (feature): initial support for binding
- README for binding.
- Docs for binding methods.

*  v3 (feature): initial support for binding
- Bind() -> BindVars(), Binding() -> Bind()

*  v3 (feature): initial support for binding
- fix doc problems

*  v3 (feature): initial support for binding
- fix doc problems

Co-authored-by: wernerr <rene@gofiber.io>
2022-08-08 09:16:08 +02:00

16 lines
213 B
Go

package binder
import (
"encoding/xml"
)
type xmlBinding struct{}
func (*xmlBinding) Name() string {
return "xml"
}
func (b *xmlBinding) Bind(body []byte, out any) error {
return xml.Unmarshal(body, out)
}