util

package
v1.2.2-beta1 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains[T comparable](s []T, sep ...T) bool

func HumpToLine

func HumpToLine(str string) string

HumpToLine Hump to underline, like json tag

func LineToHump

func LineToHump(str string) string

LineToHump Underscore to hump

func Md5

func Md5(b []byte) string

Md5 md5

func Remove

func Remove[T comparable](s []T, sep ...T) (res []T)

func RemoveDuplicate

func RemoveDuplicate[T comparable](s []T) []T

func Sha256 added in v1.2.1

func Sha256(b []byte) string

Sha256 sha256

Types

type Aes

type Aes struct {
	// contains filtered or unexported fields
}

func NewAes

func NewAes(key ...string) *Aes

func (*Aes) AesDe

func (as *Aes) AesDe(data string) string

func (*Aes) AesEn

func (as *Aes) AesEn(data string) string

func (*Aes) IsAes

func (as *Aes) IsAes(data string) bool

Jump to

Keyboard shortcuts

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