Documentation
¶
Index ¶
- func Cover(s []string, unrepeated ...bool) []int32
- func Has[T comparable](arr []T, tar T) bool
- func IndexOf[T comparable](arr []T, tar T) int
- func Last[T comparable](arr []T, n int) []T
- func Max[T constraints.Ordered](nums []T) (r T)
- func Min[T constraints.Ordered](nums []T) (r T)
- func Multiple(src string, char1, char2 string) (r [][]int32)
- func ParseInt32(v string) (int32, error)
- func ParseInt64(v string) (int64, error)
- func Roll[T constraints.Ordered](nums []T) (r T)
- func Split(src string, char ...string) []string
- func SplitAndUnrepeated(src string, char ...string) []int32
- func SplitInt32(src string, char ...string) (r []int32)
- func SplitInt64(src string, char ...string) (r []int64)
- func String[T comparable](arr []T, split ...string) string
- func Unrepeated[T comparable](arr []T) []T
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Has ¶
func Has[T comparable](arr []T, tar T) bool
func IndexOf ¶
func IndexOf[T comparable](arr []T, tar T) int
func Max ¶
func Max[T constraints.Ordered](nums []T) (r T)
func Min ¶
func Min[T constraints.Ordered](nums []T) (r T)
func ParseInt32 ¶
func ParseInt64 ¶ added in v1.4.0
func Roll ¶
func Roll[T constraints.Ordered](nums []T) (r T)
func SplitAndUnrepeated ¶
SplitAndUnrepeated 切割并去重
func SplitInt32 ¶ added in v1.4.0
func SplitInt64 ¶ added in v1.4.0
func String ¶
func String[T comparable](arr []T, split ...string) string
String 转换成split分割的字符串,默认,分割
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.