sliceutil

package
v0.0.0-...-3f61646 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2019 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CartesianProductStrings

func CartesianProductStrings(xs ...[]string) [][]string

func ContainsInt32

func ContainsInt32(xs []int32, x int32) bool

func ContainsInt64

func ContainsInt64(xs []int64, x int64) bool

func ContainsString

func ContainsString(xs []string, x string) bool

func ContainsStringArr

func ContainsStringArr(xs []string, arr []string) bool

func ContainsStrings

func ContainsStrings(xs []string, strs ...string) bool

func DeltaStrings

func DeltaStrings(xs []string, ys []string) []string

func DiffInt64Arr

func DiffInt64Arr(arr1 []int64, arr2 []int64) []int64

func FromInt64Array

func FromInt64Array(arr []int64) string

func FromStringArray

func FromStringArray(arr []string) string

func InsertInt64Arr

func InsertInt64Arr(d []int64, el int64, index int) []int64

func InsertMapInterface

func InsertMapInterface(d []map[string]interface{}, el map[string]interface{}, index int) []map[string]interface{}

func IntersectionInt64

func IntersectionInt64(xs []int64, ys []int64) []int64

func IntersectionStrings

func IntersectionStrings(xs []string, ys []string) []string

func JoinInt64Slice

func JoinInt64Slice(slice []int64, seg string) string

func RemoveDuplicateInt64s

func RemoveDuplicateInt64s(xs []int64) []int64

func RemoveDuplicateStrings

func RemoveDuplicateStrings(xs []string) []string

func RemoveEmptyStrings

func RemoveEmptyStrings(xs []string) []string

func RemoveOnString

func RemoveOnString(arr []string, key string) []string

func SliceInt64Arr

func SliceInt64Arr(arr []int64, start, limit int64) []int64

func StringsToInterfaceArr

func StringsToInterfaceArr(strs []string) []interface{}

func ToInt64Array

func ToInt64Array(str string) (arr []int64)

func ToStringArray

func ToStringArray(str string) (arr []string)

func UnIntersectionInt64

func UnIntersectionInt64(xs []int64, ys []int64) []int64

Types

This section is empty.

Jump to

Keyboard shortcuts

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