Documentation
¶
Index ¶
Constants ¶
View Source
const ( EnvProd = "prod" EnvTest = "test" EnvDev = "dev" )
View Source
const ( BaseConfigFile = "app.toml" DefaultAppName = "omni-repository" )
Variables ¶
View Source
var ( // App name Name string //Debug mode Debug bool //Current host name Hostname string //App port listen to //Env name EnvName = EnvDev //App git info Info ApplicationInfo )
View Source
var (
AppConfig appconfig.Config
)
View Source
var Logger *zap.Logger
Functions ¶
Types ¶
type ApplicationInfo ¶
type JsonData ¶
type JsonData struct { Code int `json:"code"` Title interface{} `json:"title"` Attach interface{} `json:"attach,omitempty"` Data interface{} `json:"data"` Other interface{} `json:"other,omitempty"` }
JsonData export to clent
func ExportData ¶
ExportData ExportData
Click to show internal directories.
Click to hide internal directories.