Revert "should use time.Since instead of time.Now().Sub"

This commit is contained in:
astaxie
2017-09-09 06:29:38 +08:00
committed by GitHub
parent 07a9a2d0f3
commit a7354d2d08
6 changed files with 7 additions and 7 deletions

View File

@@ -7,7 +7,7 @@ import (
// MethodParamOption defines a func which apply options on a MethodParam
type MethodParamOption func(*MethodParam)
// IsRequired indicates that this param is required and can not be omitted from the http request
// IsRequired indicates that this param is required and can not be ommited from the http request
var IsRequired MethodParamOption = func(p *MethodParam) {
p.required = true
}