Documentation ¶
Overview ¶
Package count2 counts lines in input. The input defaults to STDIN. Write this package with test-first approach (TDD). All non-trivial code should be inside the package count2, not main. Adapted from https://github.com/bitfield/tpg-tools2/tree/main/count/2
If you want to climb a mountain, begin at the top. -- Zen saying
Level: intermediate Topics: TDD, default options, tpg-tools
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCounter ¶
func NewCounter() *counter
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.