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:
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"]
|
||||
if !ok {
|
||||
return nil, errors.New("did not find token")
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue