Documentation ¶
Index ¶
- Constants
- func AesDecryptCBC(encrypted []byte, key, iv []byte) ([]byte, error)
- func AesDecryptCFB(encrypted []byte, key, iv []byte) ([]byte, error)
- func AesDecryptECB(encrypted []byte, key []byte) ([]byte, error)
- func AesEncryptCBC(plainText []byte, key, iv []byte) ([]byte, error)
- func AesEncryptCFB(origData []byte, key, iv []byte) ([]byte, error)
- func AesEncryptECB(origData []byte, key []byte) ([]byte, error)
- func Exist(p string) bool
- func Head(f string, n int) string
- func InSlice[T comparable](target []T) func(T) bool
- func IsBlank(v any) bool
- func LastCut(src, sep string) (before, after string, found bool)
- func Ls(p string)
- func Md5sum(b []byte) string
- func PrintJson(value interface{}) (e error)
- func Set[T comparable](s []T) (r []T)
- func Sha1Sum(b []byte) string
- func Sha256sum(b []byte) string
- func SliceTurning[T comparable](target []T, limit int) chan []T
- func Sum(b []byte, hash hash.Hash) []byte
- func Tail(f string, n int) string
- func ToBytes(s string) []byte
- func ToString(b []byte) string
- func WriteJson(value interface{}, file string) error
- func ZipFile(source, target string, level int) error
- type Map
- type Result
Constants ¶
View Source
const ( KB MB GB TB )
Variables ¶
This section is empty.
Functions ¶
func AesEncryptCFB ¶
=================== CFB ======================
func AesEncryptECB ¶
=================== ECB ======================
func SliceTurning ¶
func SliceTurning[T comparable](target []T, limit int) chan []T
Types ¶
type Map ¶
type Map[K comparable, V any] struct { // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.