This commit is contained in:
henry
2021-11-02 09:43:19 +08:00
parent 570bb3c772
commit 4734344985
78 changed files with 4798 additions and 0 deletions

13
config/flag.go Normal file
View File

@ -0,0 +1,13 @@
package config
import "flag"
var (
Mode = flag.String("mode", "release", "Development Environment") // debugtestrelease
Version = flag.String("version", "v1.0", "IOT Version")
)
// IsDebug 开发版本
func IsDebug() bool {
return *Mode == "debug"
}