utils

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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{}))

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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