Documentation ¶
Index ¶
- Constants
- func ArrayType(typ reflect.Type) *ast.ArrayType
- func ChanType(typ reflect.Type) *ast.ChanType
- func Field(name string, typ reflect.Type, tag string, ellipsis bool) *ast.Field
- func FuncType(typ reflect.Type) *ast.FuncType
- func Ident(name string) *ast.Ident
- func IntConst(v int64) *ast.BasicLit
- func InterfaceType(typ reflect.Type) *ast.InterfaceType
- func IsConstBound(kind ConstKind) bool
- func MapType(typ reflect.Type) *ast.MapType
- func Methods(typ reflect.Type) []*ast.Field
- func PtrType(typElem reflect.Type) ast.Expr
- func StringConst(v string) *ast.BasicLit
- func StructType(typ reflect.Type) ast.Expr
- func ToString(l *ast.BasicLit) string
- func Type(typ reflect.Type) ast.Expr
- type ConstKind
- type RecvInfo
Constants ¶
View Source
const ( // BigInt - bound type - bigint BigInt = spec.BigInt // BigRat - bound type - bigrat BigRat = spec.BigRat // BigFloat - bound type - bigfloat BigFloat = spec.BigFloat // ConstBoundRune - bound type: rune ConstBoundRune = spec.ConstBoundRune // ConstBoundString - bound type: string ConstBoundString = spec.ConstBoundString // ConstUnboundInt - unbound int type ConstUnboundInt = spec.ConstUnboundInt // ConstUnboundFloat - unbound float type ConstUnboundFloat = spec.ConstUnboundFloat // ConstUnboundComplex - unbound complex type ConstUnboundComplex = spec.ConstUnboundComplex // ConstUnboundPtr - nil: unbound ptr ConstUnboundPtr = spec.ConstUnboundPtr )
Variables ¶
This section is empty.
Functions ¶
func IsConstBound ¶
IsConstBound checks a const is bound or not.
Types ¶
Click to show internal directories.
Click to hide internal directories.