Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ReleaseMode = "release" DebugMode = "debug" )
View Source
var Val struct { Server struct { Address string `mapstructure:"address" validate:"required"` Mode string `mapstructure:"mode" validate:"oneof=debug release"` DB string `mapstructure:"db" validate:"required"` } `mapstructure:"server" validate:"required"` Log struct { Filename string `mapstructure:"filename" validate:"required"` MaxSize int `mapstructure:"max_size" validate:"gt=0"` MaxAge int `mapstructure:"max_age" validate:"gt=0"` } `mapstructure:"log" validate:"required"` Setting struct { AutoOpenBrowser bool `mapstructure:"auto_open_browser"` // 启动项目时是否自动打开浏览器访问 http://${Val.Server.Address} FileStorePath string `mapstructure:"file_store_path"` } `mapstructure:"setting" validate:"required"` }
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.