improve: 使用标准项目结构
This commit is contained in:
9
internal/pkg/dns/util/config.go
Normal file
9
internal/pkg/dns/util/config.go
Normal file
@@ -0,0 +1,9 @@
|
||||
package dnsUtil
|
||||
|
||||
import (
|
||||
"github.com/mitchellh/mapstructure"
|
||||
)
|
||||
|
||||
func DecodeConfig(conf map[string]interface{}, output interface{}) error {
|
||||
return mapstructure.Decode(conf, output)
|
||||
}
|
||||
Reference in New Issue
Block a user