sets

package
v0.16.3 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2022 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package sets implements a string set with some set operations

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Set

type Set struct {
	Data map[string]struct{} `json:"data"`
}

func NewSet

func NewSet() *Set

func UnmarshalSet

func UnmarshalSet(data []byte) *Set

func (*Set) Add

func (s *Set) Add(values ...string)

func (*Set) Clear

func (s *Set) Clear()

func (*Set) Has

func (s *Set) Has(value string) bool

func (*Set) List

func (s *Set) List() []string

func (*Set) String

func (s *Set) String() string

Jump to

Keyboard shortcuts

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