slice

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2019 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendIfMissing added in v0.4.1

func AppendIfMissing(slice []string, i string) []string

AppendIfMissing to an existing slice.

func AppendSlice added in v0.4.1

func AppendSlice(slice, extra []string) []string

AppendSlice to an existing slice without adding duplicates.

func Contains

func Contains(slice []string, s string) bool

Contains a string within a slice.

func Equal added in v0.4.1

func Equal(a, b []string) bool

Equal tells whether a and b contain the same elements. This helper function allows an equal check which is dependant of the keys.

func Remove

func Remove(slice []string, s string) []string

Remove a string from a slice.

Types

This section is empty.

Jump to

Keyboard shortcuts

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