Documentation ¶
Overview ¶
Functions for walking a file tree and concatenating all files with the ".coverprofile" extension. Designed for use with the `gover` command-line tool.
Index ¶
Constants ¶
View Source
const (
/*
The file extension to be concatenated. Currently gover assumes this
will always be '.coverprofile'.
*/
Extension = ".coverprofile"
)
Variables ¶
This section is empty.
Functions ¶
func Gover ¶
func Gover(root, out string)
Walks the file tree at `root`, concatenates all files ending with `Extension`, then writes those files to `out`.
`out` is not appended to itself, even if it is under `root` and matches `Extension`.
If `root` is an invalid path or does not contain any relevant files, an empty string is written to `out`.
If `out` already exists, it is truncated first. If `out` does not exist, a new file is created with readwrite permissions (0666).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.