1
0
mirror of https://github.com/astaxie/beego.git synced 2024-06-26 01:34:14 +00:00
Beego/param/options.go

16 lines
290 B
Go
Raw Normal View History

2017-04-21 12:26:41 +00:00
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
}
}