Skip to content

Latest commit

 

History

History
27 lines (21 loc) · 677 Bytes

README.md

File metadata and controls

27 lines (21 loc) · 677 Bytes

stringset

Version Circle CI GoDoc

A simple and space-effecient Go implementation of a set of strings.

Basic Usage

s := stringset.New()
s.Add("foo")
s.Add("bar", "baz")
fmt.Println(s)
// Output:
// [bar foo baz]

fmt.Println(s.Contains("foo"))
// Output:
// true

s.Remove("bar")
fmt.Println(s)
// Output:
// [foo]