safe

package
v0.0.0-...-d386c04 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Map

type Map[T any] struct {
	// contains filtered or unexported fields
}

func (*Map[T]) Count

func (sm *Map[T]) Count() int

func (*Map[T]) Data

func (sm *Map[T]) Data() map[string]T

func (*Map[T]) Get

func (sm *Map[T]) Get(key string) (T, bool)

func (*Map[T]) Keys

func (sm *Map[T]) Keys() []string

func (*Map[T]) Merge

func (sm *Map[T]) Merge(values map[string]T)

func (*Map[T]) Sample

func (sm *Map[T]) Sample() T

func (*Map[T]) Set

func (sm *Map[T]) Set(key string, value T)

type Slice

type Slice[T any] struct {
	// contains filtered or unexported fields
}

func (*Slice[T]) Append

func (sm *Slice[T]) Append(values ...T)

func (*Slice[T]) Count

func (sm *Slice[T]) Count() int

func (*Slice[T]) Data

func (sm *Slice[T]) Data() []T

Jump to

Keyboard shortcuts

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