gover

package
v0.0.0-...-b58185e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2017 License: Apache-2.0 Imports: 6 Imported by: 1

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL