This commit is contained in:
Gerasimos (Makis) Maropoulos 2021-01-09 04:11:46 +02:00
parent 1258ceeb9f
commit 72c2dafd2e
No known key found for this signature in database
GPG Key ID: 5DBE766BD26A54E7

View File

@ -55,7 +55,8 @@ func WriteDeprecated(ctx *context.Context, options DeprecationOptions) {
} }
} }
// Deprecated marks a specific handler as a deprecated. // Deprecated wraps an existing API handler and
// marks it as a deprecated one.
// Deprecated can be used to tell the clients that // Deprecated can be used to tell the clients that
// a newer version of that specific resource is available instead. // a newer version of that specific resource is available instead.
func Deprecated(handler context.Handler, options DeprecationOptions) context.Handler { func Deprecated(handler context.Handler, options DeprecationOptions) context.Handler {