types

package
v1.7.0-dev-20191018 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2019 License: Apache-2.0 Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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