util

package
v1.2.1-beta3 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2022 License: MIT Imports: 8 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

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