Module typ

Module typ 

Source

Structs§

ArrayDetail
An ArrayDetail represents an array type.
BasicDetail
A BasicDetail represents a basic type.
ChanDetail
InterfaceDetail
An InterfaceDetail represents an interface type.
MapDetail
NamedDetail
PointerDetail
A PointerDetail represents a pointer type.
SignatureDetail
A SignatureDetail represents a (non-builtin) function or method type. The receiver is ignored when comparing signatures for identity.
SliceDetail
A Slice represents a slice type.
StructDetail
A StructDetail represents a struct type
TupleDetail
A TupleDetail represents an ordered list of variables Tuples are used as components of signatures and to represent the type of multiple assignments; they are not first class types of Go.

Enums§

BasicInfo
BasicType
ChanDir
Type

Functions§

comparable
comparable reports whether values of type T are comparable.
deep_underlying_type
deep_underlying_type returns the ‘deep’ underlying type of type ‘t’ chains only exist while named types are incomplete.
fmt_signature
fmt_type
has_nil
has_nil reports whether a type includes the nil value.
identical
identical reports whether x and y are identical types. Receivers of Signature types are ignored.
identical_ignore_tags
identical_ignore_tags reports whether x and y are identical types if tags are ignored. Receivers of Signature types are ignored.
identical_ignore_tags_o
identical_ignore_tags_o is the same as identical_ignore_tags except for the parameters
identical_o
identical_o is the same as identical except for the parameters
is_boolean
is_complex
is_const_type
is_float
is_integer
is_interface
is_named
is_numeric
is_ordered
is_string
is_typed
is_unsigned
is_untyped
size_of
size_of only works for typed basic types for now it panics with untyped, and return the size of machine word size for all other types
underlying_type
underlying_type returns the underlying type of type ‘t’
untyped_default_type
untyped_default_type returns the default “typed” type for an “untyped” type; it returns the incoming type for all other types. The default type for untyped nil is untyped nil.