Help us shape the future of Go! Take the 2026 Go Developer Survey

slice

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2018 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainString

func ContainString(s []string, e string) bool

ContainString check if s contains e

func Equal

func Equal(a []string, b []string) bool

Equals compare two slice, do not care about order

func Find

func Find(slice []string, ele string) int

func Merge

func Merge(s1 []string, s2 []string) []string

Merge merge a and b into a big slice. O(n^2)

func Substract

func Substract(slice []string, subslice []string) []string

Substract return all elements which is in slice but not in subslice. O(n^2)

func Superset

func Superset(a []string, b []string) bool

Superset return true id a is superset of b

func Trim

func Trim(slice []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