bind

package
v0.0.0-...-7eaaaab Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 12, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Binder

type Binder struct {
	// contains filtered or unexported fields
}

Binder contains the request bind an validator objects.

func New

func New() *Binder

New returns a new binder for request bind and validation.

func (*Binder) FormUnmarshal

func (b *Binder) FormUnmarshal(iface interface{}, r *http.Request) (err error)

FormUnmarshal will perform an unmarshal on an interface using a form.

func (*Binder) Validate

func (b *Binder) Validate(s interface{}) error

Validate will validate a struct using the validator.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL