sets

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Empty

type Empty struct{}

type StringSet

type StringSet map[string]Empty

func NewString

func NewString(items ...string) StringSet

func (StringSet) Has

func (s StringSet) Has(item string) bool

func (StringSet) Insert

func (s StringSet) Insert(items ...string)

func (StringSet) List

func (s StringSet) List() []string

func (*StringSet) Set

func (s *StringSet) Set(v string) error

Set implements flag.Value interface.

func (StringSet) String

func (s StringSet) String() string

String implements flag.Value interface

Jump to

Keyboard shortcuts

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