feat: ddns 功能调用逻辑

This commit is contained in:
Mmx233
2022-12-08 16:30:29 +08:00
parent 7dc89fcf68
commit 2a386ff049
7 changed files with 100 additions and 0 deletions

9
dns/util/config.go Normal file
View File

@@ -0,0 +1,9 @@
package util
import (
"github.com/mitchellh/mapstructure"
)
func DecodeConfig(conf map[string]interface{}, output interface{}) error {
return mapstructure.Decode(conf, output)
}