stringset

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2021 License: AGPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Append

func Append(dst []string, values ...string) []string

Append appends src to dst skipping duplicate values

func Concat

func Concat(parts ...[]string) []string

Concat concatenates all parts into a single set of distinct values

func Contains added in v1.14.0

func Contains(values []string, seek string) bool

Contains checks if a string set contains a value

func Dedup

func Dedup(values []string) []string

Dedup de-duplicates a set of values in-place

func New

func New(values ...string) []string

New creates a new set of unique string values

Types

This section is empty.

Jump to

Keyboard shortcuts

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