Documentation ¶
Index ¶
- Constants
- func ComputeHmac256() string
- func Copy(to, from interface{}, params ...CopyEngine) (err error)
- func GetHashFromId(id int64, salt ...interface{}) (hash string, err error)
- func GetIdFromHash(hash string, salt ...interface{}) (id int64, err error)
- func RandomString(length int, charset string) string
- func Sha256(input string) string
- type CopyEngine
Constants ¶
View Source
const ( JsonEngine = CopyEngine("json") GobEngine = CopyEngine("gob") )
View Source
const (
Charset = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
)
Variables ¶
This section is empty.
Functions ¶
func ComputeHmac256 ¶
func ComputeHmac256() string
func Copy ¶
func Copy(to, from interface{}, params ...CopyEngine) (err error)
func GetHashFromId ¶
func GetIdFromHash ¶
func RandomString ¶
Types ¶
type CopyEngine ¶
type CopyEngine string
Click to show internal directories.
Click to hide internal directories.