diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..7a73a41 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,2 @@ +{ +} \ No newline at end of file diff --git a/data/config/common.go b/data/config/common.go index 8b2403b..05b4a0d 100644 --- a/data/config/common.go +++ b/data/config/common.go @@ -2,7 +2,9 @@ package config import ( "fmt" - "public/tools" + + "github.com/xie1xiao1jun/public/dev" + "github.com/xie1xiao1jun/public/tools" "github.com/BurntSushi/toml" ) @@ -20,6 +22,7 @@ var _map = Config{} func init() { onInit() + dev.OnSetDev(_map.IsDev) } func onInit() { @@ -31,11 +34,6 @@ func onInit() { } } -//OnIsDev ... 是否是开发版本 -func OnIsDev() bool { - return _map.IsDev -} - //InitFile ... func InitFile(filename string) error { if _, err := toml.DecodeFile(filename, &_map); err != nil { diff --git a/data/view/gtools/gtools.go b/data/view/gtools/gtools.go index 6549350..5b486e1 100644 --- a/data/view/gtools/gtools.go +++ b/data/view/gtools/gtools.go @@ -24,6 +24,7 @@ func Execute() { rows.Scan(&table) tables = append(tables, table) } + fmt.Println(tables) } diff --git a/debug b/debug new file mode 100755 index 0000000..a7c80f2 Binary files /dev/null and b/debug differ