feat: format reference

This commit is contained in:
zhangwenjian committed 2020-08-28 00:02:53 +08:00
1 parent 6877e1324c
commit c69a7d9fd9
87 files changed
+1124 -287

No files matched your search

+4 -3
View File
@@ -2,15 +2,16 @@ package models
import (
"fmt"
"go-admin/global"
"io/ioutil"
"log"
"strings"
"go-admin/global"
)
func InitDb() error {
func InitDb() (err error) {
filePath := "config/db.sql"
err := ExecSql(filePath)
err = ExecSql(filePath)
if global.Driver == "postgres" {
filePath = "config/pg.sql"
err = ExecSql(filePath)