mirror of
https://github.com/astaxie/beego.git
synced 2024-06-26 01:34:14 +00:00
16 lines
290 B
Go
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
|
||
|
}
|
||
|
}
|