use any instead of interface{}
This commit is contained in:
parent
8f5b3df1a4
commit
9d0288174e
2 changed files with 2 additions and 2 deletions
|
|
@ -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"]
|
t, ok := args["token"]
|
||||||
if !ok {
|
if !ok {
|
||||||
return nil, errors.New("did not find token")
|
return nil, errors.New("did not find token")
|
||||||
|
|
|
||||||
|
|
@ -8,4 +8,4 @@ type Provider interface {
|
||||||
Update(domain string, record string, ip net.IP) error
|
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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue