Documentation ¶ Index ¶ func Decrypt(encryptedText, secretKey, salt string) string func Encrypt(text, secretKey, salt string) string func UnixToDuration(expiredAt int64) int64 type Array func (l *Array) Add(v ...interface{}) func (l *Array) Delete(k int) func (l *Array) Map(fn func(k int, v interface{})) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Decrypt ¶ added in v0.0.3 func Decrypt(encryptedText, secretKey, salt string) string func Encrypt ¶ added in v0.0.3 func Encrypt(text, secretKey, salt string) string func UnixToDuration ¶ added in v0.0.3 func UnixToDuration(expiredAt int64) int64 Types ¶ type Array ¶ type Array []interface{} Array extends `[]interface{}`, and it should be used to represent json-like data. func (*Array) Add ¶ func (l *Array) Add(v ...interface{}) func (*Array) Delete ¶ func (l *Array) Delete(k int) func (*Array) Map ¶ func (l *Array) Map(fn func(k int, v interface{})) Source Files ¶ View all Source files array.go crypto.go utils.go Click to show internal directories. Click to hide internal directories.