diff --git a/provider/digitalocean/provider.go b/provider/digitalocean/provider.go index f31e2c4..c218c75 100644 --- a/provider/digitalocean/provider.go +++ b/provider/digitalocean/provider.go @@ -23,7 +23,7 @@ func New(token string) Provider { } } -func Factory(args map[string]interface{}) (provider.Provider, error) { +func Factory(args map[string]any) (provider.Provider, error) { t, ok := args["token"] if !ok { return nil, errors.New("did not find token") diff --git a/provider/interface.go b/provider/interface.go index 79331b5..542f192 100644 --- a/provider/interface.go +++ b/provider/interface.go @@ -8,4 +8,4 @@ type Provider interface { Update(domain string, record string, ip net.IP) error } -type ProviderFactory func(map[string]interface{}) (Provider, error) +type ProviderFactory func(map[string]any) (Provider, error)