common

package
v0.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2020 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

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 GetHashFromId(id int64, salt ...interface{}) (hash string, err error)

func GetIdFromHash

func GetIdFromHash(hash string, salt ...interface{}) (id int64, err error)

func RandomString

func RandomString(length int, charset string) string

func Sha256

func Sha256(input string) string

Types

type CopyEngine

type CopyEngine string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL