maps

package
v0.0.0-...-1f40f5c Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2024 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get[M ~map[K]V, K comparable, V any](m M, key K) V

func GetOr

func GetOr[M ~map[K]V, K comparable, V any](m M, key K, or V) V

func GetOrElse

func GetOrElse[M ~map[K]V, K comparable, V any](m M, key K, fn func() V) V

func Lookup

func Lookup[M ~map[K]V, K comparable, V any](m M, key K) (value V, ok bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

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