Documentation ¶
Index ¶
- func AlwaysLog(msg string)
- func AlwaysLogf(msg string, v ...interface{})
- func ExecOutput(cmd string, args ...string) (string, error)
- func GitCmd() string
- func GoCmd() string
- func Log(msg string)
- func Logf(msg string, v ...interface{})
- func Md5(file string) (string, error)
- func RunCmd(name string, arg ...string) error
- func Sha1(file string) (string, error)
- func Sha256(file string) (string, error)
- func TarFiles(filename string, files []string, preserveDir bool) error
- func TrimString(val string) string
- func Verbose() bool
- func ZipFiles(filename string, files []string) error
- type ChecksumDetails
- type FileDetails
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AlwaysLogf ¶
func AlwaysLogf(msg string, v ...interface{})
AlwaysLogf logs message either in verbose mode or not.
func ExecOutput ¶
ExecOutput executes a command and returns its standard output
func GitCmd ¶
func GitCmd() string
GitCmd reports the command to use to extract git info. By default it is the "go" binary in the PATH.
func GoCmd ¶
func GoCmd() string
GoCmd reports the command to use to build go code. By default it is the "go" binary in the PATH.
Types ¶
type ChecksumDetails ¶
ChecksumDetails provides check sums
func GetChecksumDetails ¶
func GetChecksumDetails(filePath string) (ChecksumDetails, error)
GetChecksumDetails returns file checksums for a given file
type FileDetails ¶
type FileDetails struct { Checksum ChecksumDetails Size int64 }
FileDetails provides check sums and size for a given file
func GetFileDetails ¶
func GetFileDetails(filePath string) (*FileDetails, error)
GetFileDetails returns file details for a given file
Click to show internal directories.
Click to hide internal directories.