Documentation
¶
Index ¶
Constants ¶
View Source
const ( MsgBadArgument = "Bad Argument" MsgBadToken = "Bad Token" MsgGeneralFailure = "Server Failure" MsgSuccess = "Success" MsgBadLogin = "Bad username or password" )
Variables ¶
This section is empty.
Functions ¶
func EncodeURIComponent ¶
EncodeURIComponent
via https://blog.csdn.net/zengming00/article/details/81977362
func FatalError ¶
func FatalError(err error)
func GenerateRandomBytes ¶
GenerateRandomBytes returns securely generated random bytes. It will return an error if the system's secure random number generator fails to function correctly, in which case the caller should not continue.
func GenerateRandomString ¶
GenerateRandomString returns a securely generated random string. It will return an error if the system's secure random number generator fails to function correctly, in which case the caller should not continue.
func GetEditKey ¶
func GetEditKey() string
Types ¶
Click to show internal directories.
Click to hide internal directories.