README ¶ Go Set A wrapper around map which offers functions that do not require a value to be provided. Getting Started Installing go get github.com/kagadar/go-set Usage import "github.com/kagadar/go-set" Expand ▾ Collapse ▴ Documentation ¶ Index ¶ type Empty type Set func New[K comparable](k ...K) Set[K] func (s Set[K]) Elements() []K func (s Set[K]) Has(k K) bool func (s Set[K]) Put(k ...K) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Empty ¶ type Empty struct{} type Set ¶ type Set[K comparable] map[K]Empty func New ¶ func New[K comparable](k ...K) Set[K] func (Set[K]) Elements ¶ func (s Set[K]) Elements() []K func (Set[K]) Has ¶ func (s Set[K]) Has(k K) bool func (Set[K]) Put ¶ func (s Set[K]) Put(k ...K) Source Files ¶ View all Source files set.go Click to show internal directories. Click to hide internal directories.