Documentation
¶
Index ¶
- Constants
- func GetEnUSText() map[int]string
- func GetMySQLExecErrorCode() (code int)
- func GetParamBindErrorCode() (code int)
- func GetReturn401Map() map[int]struct{}
- func GetServerErrorCode() (code int)
- func GetSucceedCode() (code int)
- func GetTooManyRequestsCode() (code int)
- func GetZhCNText() map[int]string
- func Init(enUS bool)
- func SetEnUSText(textMap map[int]string)
- func SetLang(l string)
- func SetMySQLExecErrorCode(code int)
- func SetParamBindErrorCode(code int)
- func SetReturn401Map(intMap map[int]struct{})
- func SetServerErrorCode(code int)
- func SetSucceedCode(code int)
- func SetTooManyRequestsCode(code int)
- func SetZhCNText(textMap map[int]string)
- func Text(code int) string
- type Failure
- type Response
Constants ¶
View Source
const ( // ZhCN 简体中文 - 中国 ZhCN = "zh-cn" // EnUS 英文 - 美国 EnUS = "en-us" )
Variables ¶
This section is empty.
Functions ¶
func GetEnUSText ¶
func GetMySQLExecErrorCode ¶
func GetMySQLExecErrorCode() (code int)
func GetParamBindErrorCode ¶
func GetParamBindErrorCode() (code int)
func GetReturn401Map ¶
func GetReturn401Map() map[int]struct{}
func GetServerErrorCode ¶
func GetServerErrorCode() (code int)
func GetSucceedCode ¶
func GetSucceedCode() (code int)
func GetTooManyRequestsCode ¶
func GetTooManyRequestsCode() (code int)
func GetZhCNText ¶
func SetEnUSText ¶
func SetMySQLExecErrorCode ¶
func SetMySQLExecErrorCode(code int)
func SetParamBindErrorCode ¶
func SetParamBindErrorCode(code int)
func SetReturn401Map ¶
func SetReturn401Map(intMap map[int]struct{})
func SetServerErrorCode ¶
func SetServerErrorCode(code int)
func SetSucceedCode ¶
func SetSucceedCode(code int)
func SetTooManyRequestsCode ¶
func SetTooManyRequestsCode(code int)
func SetZhCNText ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.