clean code
This commit is contained in:
parent
6b08576d63
commit
969bd7f618
|
@ -0,0 +1 @@
|
||||||
|
cmd/review/config.conf
|
|
@ -1 +0,0 @@
|
||||||
../../config_example.conf
|
|
|
@ -2,8 +2,8 @@ package database
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/jinzhu/gorm"
|
"github.com/jinzhu/gorm"
|
||||||
_ "github.com/jinzhu/gorm/dialects/sqlite"
|
|
||||||
_ "github.com/jinzhu/gorm/dialects/postgres"
|
_ "github.com/jinzhu/gorm/dialects/postgres"
|
||||||
|
_ "github.com/jinzhu/gorm/dialects/sqlite"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -13,7 +13,6 @@ var (
|
||||||
models []interface{}
|
models []interface{}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
type Config struct {
|
type Config struct {
|
||||||
Type string
|
Type string
|
||||||
Connection string
|
Connection string
|
||||||
|
|
|
@ -1,2 +1 @@
|
||||||
package database
|
package database
|
||||||
|
|
||||||
|
|
|
@ -5,8 +5,8 @@ import (
|
||||||
|
|
||||||
"github.com/influxdata/toml"
|
"github.com/influxdata/toml"
|
||||||
|
|
||||||
"github.com/genofire/hs_master-kss-monolith/lib/log"
|
|
||||||
"github.com/genofire/hs_master-kss-monolith/lib/database"
|
"github.com/genofire/hs_master-kss-monolith/lib/database"
|
||||||
|
"github.com/genofire/hs_master-kss-monolith/lib/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
//Config the config File of this daemon
|
//Config the config File of this daemon
|
||||||
|
|
Reference in New Issue