Documentation ¶ Index ¶ func Decrypt(pwd string, cfg config.Config) string func Encrypt(pwd string, cfg config.Config) 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(pwd string, cfg config.Config) string func Encrypt ¶ added in v0.0.3 func Encrypt(pwd string, cfg config.Config) 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 Directories ¶ Show internal Expand all Path Synopsis response Click to show internal directories. Click to hide internal directories.