slice

package
v1.3.8 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2024 License: Apache-2.0 Imports: 1 Imported by: 28

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(sl []interface{}, v interface{}) bool

func ContainsInt

func ContainsInt(sl []int, v int) bool

func ContainsInt64

func ContainsInt64(sl []int64, v int64) bool

func ContainsSlice

func ContainsSlice(smallSlice, bigSlice []string) bool

func ContainsString

func ContainsString(sl []string, v string) bool

func Merge

func Merge(slice1, slice2 []interface{}) (c []interface{})

SliceMerge merges interface slices to one slice.

func MergeInt

func MergeInt(slice1, slice2 []int) (c []int)

func MergeInt64

func MergeInt64(slice1, slice2 []int64) (c []int64)

func MergeString

func MergeString(slice1, slice2 []string) (c []string)

func SubInt64

func SubInt64(a, b []int64) []int64

Sub: a-b=?

func SubString

func SubString(a, b []string) []string

func SumFloat64

func SumFloat64(s []float64) (sum float64)

func SumInt

func SumInt(s []int) (sum int)

func SumInt64

func SumInt64(s []int64) (sum int64)

func UniqueInt

func UniqueInt(s []int) []int

func UniqueInt64

func UniqueInt64(s []int64) []int64

func UniqueString

func UniqueString(s []string) []string

func UniqueTrimString

func UniqueTrimString(s []string) []string

Types

This section is empty.

Jump to

Keyboard shortcuts

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