mirror of
https://github.com/kataras/iris.git
synced 2025-12-22 12:27:02 +00:00
update dependencies
This commit is contained in:
@@ -480,10 +480,10 @@ func WithHostProxyHeader(headers ...string) Configurator {
|
||||
// WithOtherValue adds a value based on a key to the Other setting.
|
||||
//
|
||||
// See `Configuration.Other`.
|
||||
func WithOtherValue(key string, val interface{}) Configurator {
|
||||
func WithOtherValue(key string, val any) Configurator {
|
||||
return func(app *Application) {
|
||||
if app.config.Other == nil {
|
||||
app.config.Other = make(map[string]interface{})
|
||||
app.config.Other = make(map[string]any)
|
||||
}
|
||||
app.config.Other[key] = val
|
||||
}
|
||||
@@ -891,7 +891,7 @@ type Configuration struct {
|
||||
// Defaults to "iris.view.layout".
|
||||
ViewLayoutContextKey string `ini:"view_layout_context_key" json:"viewLayoutContextKey,omitempty" yaml:"ViewLayoutContextKey" toml:"ViewLayoutContextKey"`
|
||||
// ViewDataContextKey is the context's values key
|
||||
// responsible to store and retrieve(interface{}) the current view binding data.
|
||||
// responsible to store and retrieve(any) the current view binding data.
|
||||
// A middleware can modify its associated value to change
|
||||
// the template's data on-fly.
|
||||
//
|
||||
@@ -975,7 +975,7 @@ type Configuration struct {
|
||||
// This field used only by you to set any app's options you want.
|
||||
//
|
||||
// Defaults to empty map.
|
||||
Other map[string]interface{} `ini:"other" json:"other,omitempty" yaml:"Other" toml:"Other"`
|
||||
Other map[string]any `ini:"other" json:"other,omitempty" yaml:"Other" toml:"Other"`
|
||||
}
|
||||
|
||||
var _ context.ConfigurationReadOnly = (*Configuration)(nil)
|
||||
@@ -1182,7 +1182,7 @@ func (c *Configuration) GetHostProxyHeaders() map[string]bool {
|
||||
}
|
||||
|
||||
// GetOther returns the Other field.
|
||||
func (c *Configuration) GetOther() map[string]interface{} {
|
||||
func (c *Configuration) GetOther() map[string]any {
|
||||
return c.Other
|
||||
}
|
||||
|
||||
@@ -1376,7 +1376,7 @@ func WithConfiguration(c Configuration) Configurator {
|
||||
|
||||
if v := c.Other; len(v) > 0 {
|
||||
if main.Other == nil {
|
||||
main.Other = make(map[string]interface{}, len(v))
|
||||
main.Other = make(map[string]any, len(v))
|
||||
}
|
||||
for key, value := range v {
|
||||
main.Other[key] = value
|
||||
@@ -1464,6 +1464,6 @@ func DefaultConfiguration() Configuration {
|
||||
EnableOptimizations: false,
|
||||
EnableProtoJSON: false,
|
||||
EnableEasyJSON: false,
|
||||
Other: make(map[string]interface{}),
|
||||
Other: make(map[string]any),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user