Skip to content

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

Notifications You must be signed in to change notification settings

albrow/stringset

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

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]

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages