Documentation ¶
Index ¶
- func CalcFileSHA(filename string) (*string, error)
- func CalcSHA(in []byte) *string
- func Error(e ...interface{}) error
- func FileExists(filename string) (bool, error)
- func LogError(log *logrus.Entry, e ...interface{}) error
- func RandomString(n int) string
- func ToError(args []interface{}) error
- func WorkingDir(d string) string
- type Timer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalcFileSHA ¶
CalcFileSHA return the SHA1 hash of the given file.
func FileExists ¶
FileExists checks for the existence of the given file.
func RandomString ¶
RandomString returns a random string of n characters.
func WorkingDir ¶
WorkingDir returns the passed directory, or the current working directory if d is an empty string.
Types ¶
Click to show internal directories.
Click to hide internal directories.