@@ -2,7 +2,6 @@ package conf
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
_ "embed"
|
_ "embed"
|
||||||
"fmt"
|
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
"os"
|
"os"
|
||||||
"sync"
|
"sync"
|
||||||
@@ -84,8 +83,6 @@ func initConf() {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
fmt.Println(conf.Registry.RegistryAddress[0])
|
|
||||||
fmt.Println(viper.GetString("MYSQL_DSN"))
|
|
||||||
|
|
||||||
conf.MySQL.DSN = viper.GetString("MYSQL_DSN")
|
conf.MySQL.DSN = viper.GetString("MYSQL_DSN")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user