typemap

package
v0.0.0-...-a142011 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get[T any](t TypeMap) *T

func Set

func Set[T any](t TypeMap, v T)

Types

type TypeMap

type TypeMap struct {
	// contains filtered or unexported fields
}

TypeMap provides a map that holds a map of Type -> Value. There can be only a single value per type. The value stored for a type must be of the same type as the key.

func NewTypeMap

func NewTypeMap() TypeMap

Jump to

Keyboard shortcuts

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