Fix comment format
This commit is contained in:
parent
1676eb9d42
commit
d1efc54112
@ -32,7 +32,7 @@ var DefaultOptions = Options(
|
||||
SetValidateTokenFn(allowAll),
|
||||
)
|
||||
|
||||
// Options turns a list of option instances into an option.
|
||||
// Options turns a list of option instances into an option
|
||||
func Options(opts ...Option) Option {
|
||||
return func(a *auth) {
|
||||
for _, opt := range opts {
|
||||
|
@ -28,7 +28,7 @@ var DefaultOptions = Options(
|
||||
SetResponseHandler(RespondWithUnauthorized),
|
||||
)
|
||||
|
||||
// Options turns a list of option instances into an option.
|
||||
// Options turns a list of option instances into an option
|
||||
func Options(opts ...Option) Option {
|
||||
return func(a *auth) {
|
||||
for _, opt := range opts {
|
||||
|
@ -17,7 +17,7 @@ var DefaultOptions = Options(
|
||||
SetLogHandler(DefaultLogHandler),
|
||||
)
|
||||
|
||||
// Options turns a list of option instances into an option.
|
||||
// Options turns a list of option instances into an option
|
||||
func Options(opts ...Option) Option {
|
||||
return func(l *logger) {
|
||||
for _, opt := range opts {
|
||||
|
@ -26,7 +26,7 @@ var DefaultOptions = Options(
|
||||
SetResponseHandler(RespondWithTooManyRequests),
|
||||
)
|
||||
|
||||
// Options turns a list of option instances into an option.
|
||||
// Options turns a list of option instances into an option
|
||||
func Options(opts ...Option) Option {
|
||||
return func(l *limiter) {
|
||||
for _, opt := range opts {
|
||||
|
@ -15,7 +15,7 @@ var DefaultOptions = Options(
|
||||
SetResponseHandler(RespondWithInternalServerError),
|
||||
)
|
||||
|
||||
// Options turns a list of option instances into an option.
|
||||
// Options turns a list of option instances into an option
|
||||
func Options(opts ...Option) Option {
|
||||
return func(r *recoverer) {
|
||||
for _, opt := range opts {
|
||||
|
@ -22,7 +22,7 @@ var DefaultOptions = Options(
|
||||
SetResponseHandler(RespondWithTooManyRequests),
|
||||
)
|
||||
|
||||
// Options turns a list of option instances into an option.
|
||||
// Options turns a list of option instances into an option
|
||||
func Options(opts ...Option) Option {
|
||||
return func(t *throttle) {
|
||||
for _, opt := range opts {
|
||||
|
@ -14,7 +14,7 @@ var DefaultOptions = Options(
|
||||
SetResponseHandler(RespondWithTimeout),
|
||||
)
|
||||
|
||||
// Options turns a list of option instances into an option.
|
||||
// Options turns a list of option instances into an option
|
||||
func Options(opts ...Option) Option {
|
||||
return func(t *timeout) {
|
||||
for _, opt := range opts {
|
||||
|
Loading…
Reference in New Issue
Block a user