typemapper

package module
v0.0.0-...-9ddab71 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mapper

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

func New

func New() *Mapper

func NewFromMap

func NewFromMap(org map[string]any) (*Mapper, error)

func (*Mapper) Add

func (m *Mapper) Add(key string, t any) error

func (*Mapper) DeleteKey

func (m *Mapper) DeleteKey(key string)

func (*Mapper) DeleteType

func (m *Mapper) DeleteType(t any)

func (*Mapper) Key

func (m *Mapper) Key(t any) (string, bool)

func (*Mapper) Keys

func (m *Mapper) Keys() []string

func (*Mapper) KeysToTypes

func (m *Mapper) KeysToTypes() map[string]reflect.Type

func (*Mapper) Type

func (m *Mapper) Type(key string) (reflect.Type, bool)

func (*Mapper) Types

func (m *Mapper) Types() []reflect.Type

func (*Mapper) TypesToKeys

func (m *Mapper) TypesToKeys() map[reflect.Type]string

Jump to

Keyboard shortcuts

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