Documentation ¶
Index ¶
- func CountLinesAlt1(inputReader io.Reader) (int, error)
- func CountLinesAlt2(inputReader io.Reader) (int, error)
- func CountLinesAlt3(inputReader io.Reader) (int, error)
- func CountLinesAlt4(inputReader io.Reader) (int, error)
- func CountLinesAlt5(inputReader io.Reader) (int, error)
- type LineCounterAlt1
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CountLinesAlt1 ¶
CountLinesAlt1 uses a Transformer to count the number of lines in a file.
func CountLinesAlt2 ¶
CountLinesAlt2 uses bufio.Reader and goroutines to count the number of lines.
func CountLinesAlt3 ¶
CountLinesAlt3 is the 3rd attempt to count the number of lines in a file using bufio.Reader without goroutines.
func CountLinesAlt4 ¶
CountLinesAlt4 uses atomic and goroutines to count the number of lines.
Types ¶
type LineCounterAlt1 ¶
func (*LineCounterAlt1) Reset ¶
func (lc *LineCounterAlt1) Reset()
Click to show internal directories.
Click to hide internal directories.