Documentation ¶
Overview ¶
Package stringx Date: 2023/4/10 14:42 Author: Amu Description:
Package stringx Date: 2023/4/10 14:26 Author: Amu Description:
Package stringx Date: 2023/4/10 14:46 Author: Amu Description:
Package stringx Date: 2023/4/10 14:49 Author: Amu Description:
Index ¶
- Variables
- func Contains(list []string, str string) bool
- func Filter(s string, filter func(r rune) bool) string
- func HasEmpty(args ...string) bool
- func NotEmpty(args ...string) bool
- func Rand() string
- func RandId() string
- func Randn(n int) string
- func Remove(strings []string, strs ...string) []string
- func Reverse(s string) string
- func Seed(seed int64)
- func Substr(str string, start int, stop int) (string, error)
- func TakeOne(valid, or string) string
- func TakeWithPriority(fns ...func() string) string
- func Union(first, second []string) []string
- type Replacer
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidStartPosition = errors.New("start position is invalid") ErrInvalidStopPosition = errors.New("stop position is invalid") )
Functions ¶
func Substr ¶
Substr returns runes between start and stop [start, stop) regardless of the chars are ascii or utf8
func TakeWithPriority ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.