xtype

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2021 License: MIT Imports: 3 Imported by: 3

Documentation

Index

Constants

View Source
const ThisVar = "c"

Variables

This section is empty.

Functions

This section is empty.

Types

type JenID

type JenID struct {
	Code     *jen.Statement
	Variable bool
}

func OtherID

func OtherID(code *jen.Statement) *JenID

func VariableID

func VariableID(code *jen.Statement) *JenID

type Signature

type Signature struct {
	Source string
	Target string
}

type Type

type Type struct {
	T             types.Type
	Interface     bool
	InterfaceType *types.Interface
	Struct        bool
	StructType    *types.Struct
	Named         bool
	NamedType     *types.Named
	Pointer       bool
	PointerType   *types.Pointer
	PointerInner  *Type
	List          bool
	ListFixed     bool
	ListInner     *Type
	Map           bool
	MapType       *types.Map
	MapKey        *Type
	MapValue      *Type
	Basic         bool
	BasicType     *types.Basic
}

func TypeOf

func TypeOf(t types.Type) *Type

func (*Type) ID

func (t *Type) ID() string

func (Type) TypeAsJen

func (t Type) TypeAsJen() *jen.Statement

func (*Type) UnescapedID

func (t *Type) UnescapedID() string

Jump to

Keyboard shortcuts

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