tmap

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package tmap provides type mapping facility that maps type id to type name.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Map

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

Map is type mapping.

func New

func New(mappings ...map[uint32]string) *Map

New creates new Map from mappings.

func (*Map) Get

func (m *Map) Get(id uint32) string

Get returns type string or blank.

Jump to

Keyboard shortcuts

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