Documentation
¶
Index ¶
Constants ¶
View Source
const ( WcLines wcLinesFlag = true WcNoLines wcLinesFlag = false )
View Source
const ( WcWords wcWordsFlag = true WcNoWords wcWordsFlag = false )
View Source
const ( WcBytes wcBytesFlag = true WcNoBytes wcBytesFlag = false )
View Source
const ( WcChars wcCharsFlag = true WcNoChars wcCharsFlag = false )
View Source
const ( WcMaxLineLength wcMaxLineLengthFlag = true WcNoMaxLineLength wcMaxLineLengthFlag = false )
Variables ¶
This section is empty.
Functions ¶
func Wc ¶
Wc counts lines, words, and bytes from the input stream. With no flags, all three counts are shown space-separated. Pass WcLines, WcWords, or WcBytes to show individual counts. Pass WcChars (-m) to count characters (runes). Pass WcMaxLineLength (-L) to report the maximum line length in bytes.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.