types

package
v3.3.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const BoolType = uint64(1)
View Source
const CharType = uint64(5)
View Source
const Float32Type = uint64(10)
View Source
const Float64Type = uint64(13)
View Source
const Int16Type = uint64(9)
View Source
const Int32Type = uint64(12)
View Source
const Int64Type = uint64(15)
View Source
const Int8Type = uint64(7)
View Source
const IntType = uint64(2)
View Source
const SizeType = uint64(4)
View Source
const StringType = uint64(16)
View Source
const Uint16Type = uint64(8)
View Source
const Uint32Type = uint64(11)
View Source
const Uint64Type = uint64(14)
View Source
const Uint8Type = uint64(6)
View Source
const UintType = uint64(3)

Variables

This section is empty.

Functions

func AddType

func AddType(i uint64, t *Type, rt reflect.Type)

func GetReflectedType

func GetReflectedType(i uint64) (reflect.Type, error)

func GetTypeIndex

func GetTypeIndex(i interface{}) (uint64, error)

GetTypeIndex returns the index of the type.

Types

type TypeProvider

type TypeProvider interface {
	GetTypeIndex() uint64
}

TypeProvider is an interface for any type that has a registered type.

Jump to

Keyboard shortcuts

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