helpers

package
v0.0.0-...-efa4d4d Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 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 StringSet

type StringSet map[string]struct{}

func NewStringSet

func NewStringSet(values ...string) StringSet

func (StringSet) Add

func (s StringSet) Add(values ...string)

func (StringSet) Delete

func (s StringSet) Delete(val string)

Remove removes a value from the set.

func (StringSet) Exists

func (s StringSet) Exists(value string) bool

func (StringSet) Slice

func (s StringSet) Slice() StringSlice

Slice returns the values of the set as a slice.

type StringSlice

type StringSlice []string

func (StringSlice) Random

func (s StringSlice) Random() string

Jump to

Keyboard shortcuts

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