Documentation
¶
Overview ¶
Package demo provides code examples used in the ../README.md
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FavWriter ¶
type FavWriter struct { IsFav IsFavorite W io.Writer Store Store }
FavWriter is used to filter and write only favorite number
func (*FavWriter) WriteFavorites ¶
WriteFavorites iterates through a given list of numbers and writes any favorite number to the given Writer
type IsFavorite ¶
IsFavorite is the function type for a function that determines if a number is a favorite
Click to show internal directories.
Click to hide internal directories.