Documentation ¶
Index ¶
- func ArrayConverto[F any, T any](source []F, f func(F) T) (rev []T)
- func DelStringByElement(array []string, element string) ([]string, error)
- func GenerateNo(ctx context.Context, client *redis.Client, prefix string) (string, *errx.CodeErr)
- func Md5(value string, salt string) string
- func RandInt(len int) string
- func RandSecretString(n int) string
- func RandString(len int) string
- func RandStringRunes(n int) string
- type StringSet
- func (s *StringSet) Add(items ...string)
- func (s *StringSet) Clear()
- func (s *StringSet) Complement(full *StringSet) *StringSet
- func (s *StringSet) Count() int
- func (s *StringSet) Empty() bool
- func (s *StringSet) Has(items ...string) bool
- func (s *StringSet) Intersect(sets ...*StringSet) *StringSet
- func (s *StringSet) Minus(sets ...*StringSet) *StringSet
- func (s *StringSet) Remove(items ...string)
- func (s *StringSet) ToArray() []string
- func (s *StringSet) Union(sets ...*StringSet) *StringSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArrayConverto ¶ added in v1.1.7
func DelStringByElement ¶
DelStringByElement 删除数组中的元素
func GenerateNo ¶ added in v1.0.6
func RandSecretString ¶ added in v1.2.64
Types ¶
type StringSet ¶
func NewStringSet ¶
func (*StringSet) Complement ¶
Complement 补
Click to show internal directories.
Click to hide internal directories.