1
0
mirror of https://github.com/astaxie/beego.git synced 2024-06-28 21:14:13 +00:00
Beego/param/options.go
2017-04-21 15:26:41 +03:00

16 lines
290 B
Go

package param
var InHeader MethodParamOption = func(p *MethodParam) {
p.location = header
}
var IsRequired MethodParamOption = func(p *MethodParam) {
p.required = true
}
func Default(defValue interface{}) MethodParamOption {
return func(p *MethodParam) {
p.defValue = defValue
}
}