utils

package
v0.0.0-...-ada90c4 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(pwd string, cfg config.Config) (string, error)

func Encrypt

func Encrypt(pwd string, cfg config.Config) (string, error)

func UnixToDuration

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