Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ImmType ¶
type ImmType interface {
// contains filtered or unexported methods
}
func IsImmType ¶
IsImmType determines whether the supplied type is an immutable type. In case a type is immutable, a value of type ImmTypeStruct, ImmTypeSlice or ImmTypeMap is returned. In case the type is immutable but neither of the aforementioned instances, ImmTypeUnknown is returned. If a type is not immutable then nil is returned
type ImmTypeBasic ¶
type ImmTypeBasic struct{}
ImmTypeBasic identifies Go types that are inherently immutable, e.g. ints, strings
type ImmTypeImplsIntf ¶
type ImmTypeImplsIntf struct{}
ImmTypeImplsIntf is used to indicate a type that is not an ImmTypeStruct, ImmTypeMap or ImmTypeSlice, but still satisfies the immutable "interface". See the docs for myitcv.io/immutable.Immutable.
type ImmTypeMap ¶
ImmTypeMap is used to indicate a type that is immutable by virtue of being a pointer to a struct type that was itself generated from an _Imm_ map template.
type ImmTypeSimple ¶
type ImmTypeSimple struct{}
ImmTypeSimple is used to indiciate an interface type that extends the myitcv.io/immutable.Immutable interface.
type ImmTypeSlice ¶
ImmTypeMap is used to indicate a type that is immutable by virtue of being a pointer to a struct type that was itself generated from an _Imm_ slice template.
type ImmTypeStruct ¶
ImmTypeStruct is used to indicate a type that is immutable by virtue of being a pointer to a struct type that was itself generated from an _Imm_ struct template.