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"`
|
||||
}
|
||||
|
||||
var (
|
||||
cfg *Config
|
||||
testCfg *Config
|
||||
dbConn *sql.DB
|
||||
)
|
||||
|
||||
func TestMain(m *testing.M) {
|
||||
rand.Seed(time.Now().UnixNano())
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
var testCfg *Config
|
||||
|
||||
var dbConn *sql.DB
|
||||
var (
|
||||
testCfg *Config
|
||||
dbConn *sql.DB
|
||||
)
|
||||
|
||||
func InitViper() error {
|
||||
var err error
|
||||
|
@ -16,7 +17,7 @@ func InitViper() error {
|
|||
} else {
|
||||
wd = wd + "/.."
|
||||
}
|
||||
fmt.Println(wd)
|
||||
fmt.Println(wd)
|
||||
configPaths := []string{wd}
|
||||
if len(configHome) > 0 {
|
||||
configPaths = append(configPaths, filepath.Join(configHome, "sqlboiler"))
|
||||
|
|
Loading…
Reference in a new issue