binding

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 License: MIT Imports: 18 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindForm

func BindForm(req *http.Request, target interface{}) error

BindForm 将表单参数绑定到target.

func GetAllQueries added in v0.0.4

func GetAllQueries(req *http.Request) map[string][]string

GetAllQueries return all queries of the current *http.Request

func GetQuery added in v0.0.4

func GetQuery(req *http.Request, key string) []string

GetQuery return the key value, of the current *http.Request query

func MapProto

func MapProto(msg proto.Message, values map[string]string) error

MapProto 在嵌套的Protobuf结构中设置一个值.

Types

This section is empty.

Jump to

Keyboard shortcuts

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