strlenmap

package
v0.15.8 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: MIT Imports: 0 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 {
	Values []T
	// contains filtered or unexported fields
}

func New

func New[T any]() *Map[T]

func (*Map[T]) Get

func (m *Map[T]) Get(key string) (v T, found bool)

func (*Map[T]) Insert

func (m *Map[T]) Insert(key string, value T)

Insert inserts a value. If the key already exists, it won't be overridden. However, a new value will be ignored, and the first one added will always be used

Jump to

Keyboard shortcuts

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