slice

package
v0.1.48 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2022 License: MIT Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendOnceInt added in v0.1.30

func AppendOnceInt(arr []int, item int) []int

func AppendOnceInt32 added in v0.1.30

func AppendOnceInt32(arr []int32, item int32) []int32

func AppendOnceInt64 added in v0.1.30

func AppendOnceInt64(arr []int64, item int64) []int64

func AppendOnceString added in v0.1.30

func AppendOnceString(arr []string, item string) []string

func ByteArr

func ByteArr(i ...byte) []byte

func FlipSlice

func FlipSlice(a interface{}) interface{}

func HasFloat64

func HasFloat64(arr []float64, item float64) bool

func HasInt

func HasInt(arr []int, item int) bool

func HasInt32 added in v0.1.30

func HasInt32(arr []int32, item int32) bool

func HasInt64 added in v0.1.30

func HasInt64(arr []int64, item int64) bool

func HasString added in v0.1.8

func HasString(arr []string, item string) bool

func IntArr

func IntArr(i ...int) []int

func RemoveDuplicateString added in v0.1.25

func RemoveDuplicateString(a []string) []string

func RemoveInt added in v0.1.30

func RemoveInt(arr []int, id int) []int

func RemoveInt32 added in v0.1.30

func RemoveInt32(arr []int32, id int32) []int32

func RemoveInt64 added in v0.1.30

func RemoveInt64(arr []int64, id int64) []int64

func RemoveString added in v0.1.30

func RemoveString(arr []string, id string) []string

func SliceConcat

func SliceConcat(a ...[]interface{}) []interface{}

func StringArr

func StringArr(s ...string) []string

Types

type KVIntString

type KVIntString struct {
	K int
	V string
}

Jump to

Keyboard shortcuts

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