Documentation
¶
Index ¶
- Constants
- func AppendAsString(args ...interface{}) string
- func ComparePassword(password, hash string) (bool, error)
- func GenerateHMAC(secret, data string) (sha string)
- func GenerateHash(password string) (string, error)
- func GetValidFloat(source interface{}) float64
- func GetValidString(source interface{}) string
- func JSONMarshal(input interface{}) (result []byte, err error)
- func JSONUnmarshal(input []byte) (result interface{}, err error)
- func RandStringBytesMaskImprSrcSB(n int) string
- func StrToUint(value string) (uint, error)
- type API
- type Claims
Constants ¶
View Source
const ( TimeFormatYYYYMMDDHHMMSS = "20060102150405" TimeFormatYYYYMMDD = "20060102" HttpContent = "application/json" )
Variables ¶
This section is empty.
Functions ¶
func AppendAsString ¶
func AppendAsString(args ...interface{}) string
func ComparePassword ¶
ComparePassword compare password and hash
func GenerateHMAC ¶
func GenerateHash ¶
GenerateHash password hash generate
func GetValidFloat ¶
func GetValidFloat(source interface{}) float64
func GetValidString ¶
func GetValidString(source interface{}) string
func JSONMarshal ¶
JSONMarshal Interface to json
func JSONUnmarshal ¶
JSONUnmarshal Json to interface
Types ¶
Click to show internal directories.
Click to hide internal directories.