dtm/examples/config.go
2021-07-29 22:41:43 +08:00

17 lines
284 B
Go

package examples
import "github.com/yedf/dtm/common"
type exampleConfig struct {
Mysql map[string]string `yaml:"Mysql"`
}
var config = exampleConfig{}
var dbName = "dtm_busi"
func init() {
common.InitConfig(common.GetProjectDir(), &config)
config.Mysql["database"] = dbName
}