Documentation ¶
Index ¶
- Constants
- func AddDependencies(customerInputDirectory, customerOutputDirectory, instrumentorVersion string)
- func CopyRecursiveNoClobber(from, to string)
- func GetAbsoluteDirectory(path string) string
- func HashFileContent(paths []string) string
- func Pluralize(val int, singularText string) string
- func ValidateDirectories(input, output string) (err error)
- func WriteTextFile(text, file_name string) (err error)
- type LogWriter
Constants ¶
View Source
const EncodedHashByteLength = HashBytesUsed * 2
View Source
const HashBitsUsed = 48
View Source
const HashBytesUsed = HashBitsUsed / 8
Variables ¶
This section is empty.
Functions ¶
func AddDependencies ¶
func AddDependencies(customerInputDirectory, customerOutputDirectory, instrumentorVersion string)
func CopyRecursiveNoClobber ¶
func CopyRecursiveNoClobber(from, to string)
func GetAbsoluteDirectory ¶
GetAbsoluteDirectory converts a path, whether a symlink or a relative path, into an absolute path.
func HashFileContent ¶
HashFileContent reads the binary content of every file in paths (assumed to be in lexical order) and returns the SHA-256 digest.
func ValidateDirectories ¶
ValidateDirectories checks that neither directory is a child of the other, and of course that they're not the same.
func WriteTextFile ¶
Types ¶
type LogWriter ¶
type LogWriter struct {
// contains filtered or unexported fields
}
func GetLogWriter ¶
func GetLogWriter() *LogWriter
func NewLogWriter ¶
func (*LogWriter) VerboseLevel ¶
Click to show internal directories.
Click to hide internal directories.