set

package
v0.0.0-...-18cb69e Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: Apache-2.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 String

type String map[string]bool

String is a set of strings, used to check the existance of strings, this can be replaced once generics are introduced in Go 1.18

func (String) Add

func (ss String) Add(strs ...string)

Add add a variable list of strings to the set

func (String) Contains

func (ss String) Contains(str string) bool

Contains checks if a string is in the set, if it is return true, false otherwise.

Jump to

Keyboard shortcuts

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