slicetool

package
Version: v0.0.0-...-470e8f5 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2014 License: BSD-3-Clause Imports: 0 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SliceContains

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

func SliceContainsInt

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

func SliceContainsInt64

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

func SliceContainsString

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

func SliceMerge

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

SliceMerge merges interface slices to one slice.

func SliceMergeInt

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

func SliceMergeInt64

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

func SliceMergeString

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

func SliceSumFloat64

func SliceSumFloat64(intslice []float64) (sum float64)

func SliceSumInt

func SliceSumInt(intslice []int) (sum int)

func SliceSumInt64

func SliceSumInt64(intslice []int64) (sum int64)

func SliceUniqueInt

func SliceUniqueInt(s []int) []int

func SliceUniqueInt64

func SliceUniqueInt64(s []int64) []int64

func SliceUniqueString

func SliceUniqueString(s []string) []string

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

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