1
0
Fork 0
mirror of https://gitlab.com/pnx-tools/dns-updater.git synced 2026-06-16 05:54:56 +02:00

use any instead of interface{}

This commit is contained in:
Henrik Hautakoski 2025-10-13 09:14:45 +02:00
parent 8f5b3df1a4
commit 9d0288174e
2 changed files with 2 additions and 2 deletions

View file

@ -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")

View file

@ -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)