slices - ActiveState ActiveGo 1.8
...

Package slices

import "github.com/influxdata/influxdb/pkg/slices"
Overview
Index

Overview ▾

Package slices contains functions to operate on slices treated as sets.

func Exists

func Exists(set []string, find string) bool

Exists checks if a string is in a set.

func ExistsIgnoreCase

func ExistsIgnoreCase(set []string, find string) bool

ExistsIgnoreCase checks if a string is in a set but ignores its case.

func Union

func Union(setA, setB []string, ignoreCase bool) []string

Union combines two string sets.