stringset

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: May 14, 2023 License: GPL-3.0 Imports: 0 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]struct{}

StringSet is a very thin wrapper around a map with string keys and empty values

func (StringSet) Add

func (s StringSet) Add(i string)

func (StringSet) Diff

func (s StringSet) Diff(other StringSet) StringSet

Diff returns the difference between the current StringSet and `other`. I.e.: `s \ other`

func (StringSet) Has

func (s StringSet) Has(i string) bool

Jump to

Keyboard shortcuts

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