Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DefaultBindConfig default BindConfig DefaultBindConfig = NewBindConfig() )
Functions ¶
func BindStruct ¶
BindStruct martini handler for bind struct with default config
func BindStructWithConfig ¶
func BindStructWithConfig(obj interface{}, config BindConfig) martini.Handler
BindStructWithConfig martini handler for bind struct
Types ¶
type BindConfig ¶
type BindConfig struct { DisableBindQuery bool DisableBindParams bool DisableTrimSpace bool DisableGoValidator bool // Maximum amount of memory to use when parsing a multipart form. // Set this to whatever value you prefer; default is 20 MB. MaxMemory int64 }
BindConfig config for bind
Click to show internal directories.
Click to hide internal directories.