set

package
v0.0.0-...-bb97991 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2019 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package set implement sets for various types. Well, only string for now :)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type String

type String struct {
	// contains filtered or unexported fields
}

String set.

func NewString

func NewString(values ...string) *String

NewString returns a new string set, with the given values in it.

func (*String) Add

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

Add values to the string set.

func (*String) Has

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

Has checks if the set has the given value.

Jump to

Keyboard shortcuts

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