Documentation ¶
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 Int64ListToString(ids []int64) string
- func NotEmpty(args ...string) bool
- func Remove(strings []string, strs ...string) []string
- func Reverse(s string) string
- func Substr(str string, start, stop int) (string, error)
- func TakeOne(valid, or string) string
- func TakeWithPriority(fns ...func() string) string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidStartPosition is an error that indicates the start position is invalid. ErrInvalidStartPosition = errors.New("start position is invalid") // ErrInvalidStopPosition is an error that indicates the stop position is invalid. ErrInvalidStopPosition = errors.New("stop position is invalid") )
Functions ¶
func Int64ListToString ¶
func Substr ¶
Substr returns runes between start and stop [start, stop) regardless of the chars are ascii or utf8.
func TakeWithPriority ¶
TakeWithPriority returns the first not empty result from fns.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.