Merge conflict resolution (late)
This commit is contained in:
parent
41ce2b511b
commit
85ff9a797a
2 changed files with 5 additions and 10 deletions
|
@ -10,12 +10,6 @@ type Config struct {
|
||||||
Postgres PostgresCfg `toml:"postgres"`
|
Postgres PostgresCfg `toml:"postgres"`
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
|
||||||
cfg *Config
|
|
||||||
testCfg *Config
|
|
||||||
dbConn *sql.DB
|
|
||||||
)
|
|
||||||
|
|
||||||
func TestMain(m *testing.M) {
|
func TestMain(m *testing.M) {
|
||||||
rand.Seed(time.Now().UnixNano())
|
rand.Seed(time.Now().UnixNano())
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
var testCfg *Config
|
var (
|
||||||
|
testCfg *Config
|
||||||
var dbConn *sql.DB
|
dbConn *sql.DB
|
||||||
|
)
|
||||||
|
|
||||||
func InitViper() error {
|
func InitViper() error {
|
||||||
var err error
|
var err error
|
||||||
|
@ -16,7 +17,7 @@ func InitViper() error {
|
||||||
} else {
|
} else {
|
||||||
wd = wd + "/.."
|
wd = wd + "/.."
|
||||||
}
|
}
|
||||||
fmt.Println(wd)
|
fmt.Println(wd)
|
||||||
configPaths := []string{wd}
|
configPaths := []string{wd}
|
||||||
if len(configHome) > 0 {
|
if len(configHome) > 0 {
|
||||||
configPaths = append(configPaths, filepath.Join(configHome, "sqlboiler"))
|
configPaths = append(configPaths, filepath.Join(configHome, "sqlboiler"))
|
||||||
|
|
Loading…
Reference in a new issue