slices

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2018 License: MIT Imports: 1 Imported by: 26

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesToStrings added in v1.4.3

func BytesToStrings(a [][]byte) []string

BytesToStrings converts a slice of []byte into a slice of strings.

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 StringsToBytes added in v1.4.3

func StringsToBytes(s ...string) [][]byte

StringsToBytes converts a variable number of strings into a slice of []byte.

func Union

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

Union combines two string sets.

Types

This section is empty.

Jump to

Keyboard shortcuts

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