Use golint to normalize the code (#1)

This commit is contained in:
Li4n0
2021-04-21 22:08:29 +08:00
committed by GitHub
parent d4a47aebca
commit 960b2ab5ea
39 changed files with 1046 additions and 1108 deletions
+1 -1
View File
@@ -9,5 +9,5 @@ func InitDB(driver, dsn string) (err error) {
case "sqlite":
DB, err = NewSqlite3(dsn)
}
return
return err
}
+1 -2
View File
@@ -15,7 +15,6 @@ func (f *MapField) Scan(data interface{}) error {
return json.Unmarshal(data.([]byte), f)
}
type ListField []string
func (f ListField) Value() (driver.Value, error) {
@@ -24,4 +23,4 @@ func (f ListField) Value() (driver.Value, error) {
func (f *ListField) Scan(data interface{}) error {
return json.Unmarshal(data.([]byte), f)
}
}