Documentation ¶
Index ¶
- func ArrarysGetRandomOne(arr interface{}) interface{}
- func ArrarysHas(ss []string, val string) bool
- func ArrarysRemove(ss []string, s string) []string
- func ArrarysReverse(ss []string)
- func ArrarysShuffle(array []interface{}, source rand.Source)
- func ArrarysTrim(ss []string, cutSet ...string) (ns []string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArrarysGetRandomOne ¶
func ArrarysGetRandomOne(arr interface{}) interface{}
ArrarysGetRandomOne get random element from an array/slice
func ArrarysHas ¶
ArrarysHas check the []string contains the given element
func ArrarysRemove ¶
ArrarysRemove an value form an string slice
func ArrarysReverse ¶
func ArrarysReverse(ss []string)
ArrarysReverse string slice [site user info 0] -> [0 info user site]
func ArrarysShuffle ¶
ArrarysShuffle shuffles the array using a random source
func ArrarysTrim ¶
ArrarysTrim trim string slice item.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.