utils

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TimeFormat = "2006-01-02 15:04:05"
)

Variables

This section is empty.

Functions

func AesCbcDecript

func AesCbcDecript(data, key string) []byte

func AesCbcEncrypt

func AesCbcEncrypt(data, key string) string

func AesEcbDecrypt

func AesEcbDecrypt(data, key []byte) []byte

func AesEcbEncrypt

func AesEcbEncrypt(data, key []byte) []byte

func Exists

func Exists(path string) bool

Determine whether the given path file / folder exists

func GetSha256

func GetSha256(data []byte) string

func GetUUID

func GetUUID() string

func HS256Sign

func HS256Sign(key, data string) string

func IntToStr

func IntToStr(i int64) string

func IsDir

func IsDir(path string) bool

Determine if the given path is a folder

func IsFile

func IsFile(path string) bool

Determine if the given path is a file

func Microstamp

func Microstamp() int64

ms

func Mkdir

func Mkdir(path string) error

func Nanostamp

func Nanostamp() int64

ns

func StrToInt

func StrToInt(s string) int64

func StrToMD5

func StrToMD5(t string) string

func Timestamp

func Timestamp() int64

s

func Usstamp

func Usstamp() int64

us

Types

This section is empty.

Jump to

Keyboard shortcuts

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