Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Lines bool `flag:"" desc:"Count lines"`
Words bool `flag:"" desc:"Count words"`
Bytes bool `flag:"" desc:"Count bytes"`
MaxLines bool `flag:"" desc:"Show maximum line length"`
AllFiles bool `flag:"" desc:"Count all files including hidden"`
XML bool
JSON bool
Plain bool
Pretty bool
}
type WCFile ¶
type WCFile struct {
XMLName xml.Name `xml:"file"`
Path string `xml:"path,attr"`
Absolute string `xml:"absolute,attr"`
Lines int64 `xml:"lines,attr"`
Words int64 `xml:"words,attr"`
Bytes int64 `xml:"bytes,attr"`
MaxLineLen int64 `xml:"max_line_len,attr"`
Language string `xml:"language,attr"`
Errors []WCError `xml:"error,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.