sets

package
v0.0.0-...-e3fd340 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2020 License: Apache-2.0 Imports: 1 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]bool

StringSet is a set of strings with simple functionality for getting a sorted set of elements.

func NewStringSet

func NewStringSet() StringSet

NewStringSet creates a new empty StringSet.

func (StringSet) Add

func (s StringSet) Add(n string)

Add adds a string to the set.

func (StringSet) Elements

func (s StringSet) Elements() []string

Elements returns a sorted list of elements in the set.

Jump to

Keyboard shortcuts

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