mirror of
https://github.com/kataras/iris.git
synced 2026-01-08 12:31:58 +00:00
versioning API: initialize support for grouping
Former-commit-id: 36cf8cd79801e8556f3c7b560f3bd759d9770d67
This commit is contained in:
@@ -12,6 +12,10 @@ type DeprecationOptions struct {
|
||||
DeprecationInfo string
|
||||
}
|
||||
|
||||
func (opts DeprecationOptions) ShouldHandle() bool {
|
||||
return opts.WarnMessage != "" || !opts.DeprecationDate.IsZero() || opts.DeprecationInfo != ""
|
||||
}
|
||||
|
||||
var DefaultDeprecationOptions = DeprecationOptions{
|
||||
WarnMessage: "WARNING! You are using a deprecated version of this API.",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user