arrary

package
v0.0.0-...-cc0701e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 2, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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

func ArrarysHas(ss []string, val string) bool

ArrarysHas check the []string contains the given element

func ArrarysRemove

func ArrarysRemove(ss []string, s string) []string

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

func ArrarysShuffle(array []interface{}, source rand.Source)

ArrarysShuffle shuffles the array using a random source

func ArrarysTrim

func ArrarysTrim(ss []string, cutSet ...string) (ns []string)

ArrarysTrim trim string slice item.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL