Fix comment format

This commit is contained in:
Anton Zadvorny 2023-06-26 03:40:26 +06:00
parent 1676eb9d42
commit d1efc54112
7 changed files with 7 additions and 7 deletions

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {