Documentation
¶
Overview ¶
Example (CreateLargerThanPredicate) ¶
out := filter([]int{1, 2, 3, 4, 5, 6}, createLargerThanPredicate(3)) fmt.Println(out)
Output: [4 5 6]
Example (Partial) ¶
bucky := maleHavaneseSpawner("bucky") rocky := maleHavaneseSpawner("rocky") tipsy := femalePoodleSpawner("tipsy") fmt.Printf("%v\n", bucky) fmt.Printf("%v\n", rocky) fmt.Printf("%v\n", tipsy)
Output: {bucky 1 0} {rocky 1 0} {tipsy 3 1}
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NameToDogFunc ¶
func DogSpawner ¶
func DogSpawner(breed Breed, gender Gender) NameToDogFunc
Click to show internal directories.
Click to hide internal directories.