Documentation
¶
Index ¶
- Constants
- func GetAppName() string
- func GetEndpoint() string
- func GetEnv() string
- func GetHost() string
- func GetVersion() string
- func HashPassword(src string) (hashStr, salt string)
- func NewStarter() *starter
- func Powerf(x float64, n int) float64
- func RandomNumber(l int) (string, error)
- func RandomString(l int) string
- func ValidatePassword(passStr, salt, passHash string) bool
- type Global
Constants ¶
View Source
const ( Env = "Env" // 允许环境:dev、testing、product Host = "Host" // 主机地址 Endpoint = "Endpoint" // 节点 AppName = "AppName" // 应用名 Version = "Version" // 应用版本 )
全局配置
Variables ¶
This section is empty.
Functions ¶
func GetAppName ¶
func GetAppName() string
func GetEndpoint ¶
func GetEndpoint() string
func GetVersion ¶
func GetVersion() string
func NewStarter ¶
func NewStarter() *starter
Types ¶
Click to show internal directories.
Click to hide internal directories.