Help us shape the future of Go! Take the 2026 Go Developer Survey

typeinfo

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FieldInfo

type FieldInfo struct {
	Name     string
	GoName   string
	Type     *TypeInfo
	Nullable bool
}

type TypeInfo

type TypeInfo struct {
	Kind     TypeKind
	Nullable bool

	Fields []*FieldInfo

	Elem *TypeInfo
}

func Infer

func Infer(n *node.Node) *TypeInfo

type TypeKind

type TypeKind uint8
const (
	TypeNull TypeKind = iota
	TypeBool
	TypeNumber
	TypeString
	TypeArray
	TypeObject
	TypeMixed
)

Jump to

Keyboard shortcuts

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