stringset

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2017 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StringSet

type StringSet map[string]sentinel

StringSet maintains a set of unique strings.

func New

func New() StringSet

New creates a new StringSet.

func (StringSet) Add

func (ss StringSet) Add(in ...string)

Add a string or strings to the set.

func (StringSet) Contains

func (ss StringSet) Contains(in string) bool

Contains returns true if this set contains the given string.

func (StringSet) Count

func (ss StringSet) Count() int

Count returns the number of unique strings in this set.

Jump to

Keyboard shortcuts

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