Registry / utility / fatih-set

fatih-set

JSON →
library0.2.1gogounverified

Package set provides both threadsafe and non-threadsafe implementations of a generic set data structure.

go get github.com/fatih/set
INSTALL
IMPORT
SIG · FATIH-SET
F
fatih-set
utilitygov0.2.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

set
✓ github.com/fatih/set

Creates a new set and adds elements.

package main import ( "fmt" "github.com/fatih/set" ) func main() { s := set.New() s.Add("apple") s.Add("banana") fmt.Println("Set contains apple:", s.Has("apple")) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.2.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
fatih-set — go get fatih-set · libregistry