helpers

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2023 License: MIT Imports: 15 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AesDecrypt

func AesDecrypt(str string, key []byte) (ret string, err error)

func AesDecryptBytes

func AesDecryptBytes(bytes []byte, key []byte) ([]byte, error)

func AesEncrypt

func AesEncrypt(str string, key []byte) (string, error)

func AesEncryptBytes

func AesEncryptBytes(bytes []byte, key []byte) ([]byte, error)

func CalcPostId

func CalcPostId() uint64

func CalcUserID

func CalcUserID(email string) uint64

func DecodeId

func DecodeId(str string) (uint64, error)

func EncodeId

func EncodeId(id uint64) string

func EqString

func EqString(a interface{}, b string) bool

func FmtTime

func FmtTime(t time.Time) string

func FmtTimeUnix

func FmtTimeUnix(unix int64) string

func FuncMap

func FuncMap() template.FuncMap

func GetGuid

func GetGuid() string

生成GUID

func GetMd5String

func GetMd5String(s string) string

生成32位md5字串

func NewPostId

func NewPostId() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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