Documentation ¶
Index ¶
- func CallWithGenericType(i InterfaceGenericType)
- func CallWithUint8(i InterfaceUint8)
- func ContainsAllSomeThing(slice []SomeThing, other []SomeThing) bool
- func ContainsAllString(slice []string, other []string) bool
- func ContainsSomeThing(slice []SomeThing, element SomeThing) bool
- func ContainsString(slice []string, element string) bool
- func NewInts() (*ObjInt, []ObjInt)
- func NewNumberTypes() (*ObjNumberType, []ObjNumberType)
- type CellInt
- type CellX
- type DigraphInt
- type DigraphNode
- type GenericType
- type InterfaceGenericType
- type InterfaceUint8
- type Node
- type NumberType
- type ObjInt
- type ObjNumberType
- type Receiver
- type SomeThing
- type X
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CallWithGenericType ¶
func CallWithGenericType(i InterfaceGenericType)
Call calls a method on an instance of generic interface. Targets github issue 49
func CallWithUint8 ¶
func CallWithUint8(i InterfaceUint8)
Call calls a method on an instance of generic interface. Targets github issue 49
func ContainsAllSomeThing ¶
ContainsAllSomeThing targets github issue 36
func ContainsAllString ¶
ContainsAllString targets github issue 36
func ContainsSomeThing ¶
func ContainsString ¶
func NewInts ¶
NewInts calls new on ObjInt and instantiates slice. Targets github issues #36 and #49
func NewNumberTypes ¶
func NewNumberTypes() (*ObjNumberType, []ObjNumberType)
NewNumberTypes calls new on ObjNumberType and instantiates slice. Targets github issues #36 and #49
Types ¶
type CellInt ¶
type CellInt struct {
Value int
}
CellInt is result of generating code via genny for type int int int - exact match of type name in comments uses the capitalization of the type intMen IntMen - non exact match retains original capitalization
type CellX ¶
type CellX struct {
Value X
}
CellX is result of generating code via genny for type X X X - exact match of type name in comments uses the capitalization of the type xMen XMen - non exact match retains original capitalization
type DigraphInt ¶
type DigraphInt struct {
// contains filtered or unexported fields
}
func NewDigraphInt ¶
func NewDigraphInt() *DigraphInt
func (*DigraphInt) Add ¶
func (dig *DigraphInt) Add(n int)
func (*DigraphInt) Connect ¶
func (dig *DigraphInt) Connect(a, b int)
type DigraphNode ¶
type DigraphNode struct {
// contains filtered or unexported fields
}
func NewDigraphNode ¶
func NewDigraphNode() *DigraphNode
func (*DigraphNode) Add ¶
func (dig *DigraphNode) Add(n Node)
func (*DigraphNode) Connect ¶
func (dig *DigraphNode) Connect(a, b Node)
type GenericType ¶
type InterfaceGenericType ¶
type InterfaceGenericType interface {
DoSomthingGenericType()
}
type InterfaceUint8 ¶
type InterfaceUint8 interface {
DoSomthingUint8()
}
type ObjInt ¶
type ObjInt struct {
// contains filtered or unexported fields
}
ObjInt is the struct used for tests.
type ObjNumberType ¶
type ObjNumberType struct {
// contains filtered or unexported fields
}
ObjNumberType is the struct used for tests.
type Receiver ¶
type Receiver struct{}
Receiver is the struct used for tests.
func (Receiver) StringsToBools ¶
StringsToBools converts a []string to a []bool
func (Receiver) StringsToFloat64s ¶
StringsToFloat64s converts a []string to a []float64
func (Receiver) StringsToInts ¶
StringsToInts converts a []string to a []int