chore: modernize go sources (#24896)

This commit is contained in:
andig 2025-10-31 16:25:53 +01:00 • committed by GitHub
parent 3421e8df81
commit 352012d24b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
324 changed files with 590 additions and 583 deletions

View file

@ -31,7 +31,7 @@ func init() {
}
// NewScriptPluginFromConfig creates a script plugin.
func NewScriptPluginFromConfig(other map[string]interface{}) (Plugin, error) {
func NewScriptPluginFromConfig(other map[string]any) (Plugin, error) {
cc := struct {
Cmd string
pipeline.Settings `mapstructure:",squash"`
@ -128,7 +128,7 @@ func (p *Script) StringGetter() (func() (string, error), error) {
func scriptSetter[T any](p *Script, param string) (func(T) error, error) {
return func(val T) error {
cmd, err := util.ReplaceFormatted(p.script, map[string]interface{}{
cmd, err := util.ReplaceFormatted(p.script, map[string]any{
param: val,
})