removed unnecessary import
parent
8c60b0dea5
commit
87f6434fcd
|
@ -2,7 +2,6 @@ package config
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/BurntSushi/toml"
|
"github.com/BurntSushi/toml"
|
||||||
_ "github.com/go-sql-driver/mysql"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
var Cfg Config
|
var Cfg Config
|
||||||
|
@ -47,7 +46,3 @@ type settings struct {
|
||||||
func LoadConfig() {
|
func LoadConfig() {
|
||||||
toml.DecodeFile("./config.toml", &Cfg)
|
toml.DecodeFile("./config.toml", &Cfg)
|
||||||
}
|
}
|
||||||
|
|
||||||
func GetConfig() Config {
|
|
||||||
return Cfg
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue