Documentation ¶ Index ¶ type Metrics func File(path string) (Metrics, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Metrics ¶ type Metrics struct { RawLines int CodeLines int Tests int StaticSubtests int DynamicSubtestSites int Benchmarks int StaticSubbenchmarks int DynamicSubbenchmarkSites int Examples int Package string } Metrics contains source metrics for one Go file. func File ¶ func File(path string) (Metrics, error) File counts raw lines, effective code lines, and test declarations. Source Files ¶ View all Source files count.golines.gosubtests.go Click to show internal directories. Click to hide internal directories.