sliceutils

package
v0.10.24 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendWithoutDupes added in v0.7.11

func AppendWithoutDupes(a []string, b ...string) []string

returns a slice that consists of `a`, in order, followed by elements of `b` that are not in `a`

func BulletedIndentedStringList added in v0.10.14

func BulletedIndentedStringList(list []string) string

func DedupedAndSorted added in v0.5.1

func DedupedAndSorted(slice []string) (result []string)

Deduplicate and sort a slice of strings.

func QuotedStringList added in v0.8.3

func QuotedStringList(list []string) string

Quote each string in the list and separate them by commas.

func StringSliceEquals added in v0.6.0

func StringSliceEquals(a, b []string) bool

func StringSliceStartsWith added in v0.9.5

func StringSliceStartsWith(a []string, elem string) bool

StringSliceStartsWith returns true if slice A starts with the given elem.

Types

This section is empty.

Jump to

Keyboard shortcuts

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