Documentation ¶
Index ¶
- Variables
- func Assert(cond bool, format string, args ...interface{})
- func CopyDir(src string, dst string) error
- func CopyFile(src, dst string) error
- func IsUnix() bool
- func IsWindows() bool
- func ListFiles(dir string) ([]string, error)
- func ListFilesFlat(dir string) ([]string, error)
- func PathExists(path string) (bool, error)
- func PhaseTimer(name string) func()
- func RandomString(n int) string
- func ReadFile(filePath string) (string, error)
- func RunCmd(args ...string) error
- func RunCmdOutput(args ...string) (string, error)
- func ShouldNotReachHere()
- func ShouldNotReachHereT(msg string)
- func Unimplemented()
- func UnimplementedT(msg string)
- func WriteFile(filePath string, content string) (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var Guarantee = Assert // More meaningful name:)
Functions ¶
func ListFilesFlat ¶
func PathExists ¶
func PhaseTimer ¶
func PhaseTimer(name string) func()
func RandomString ¶
RandomString generates a globally unique random string of length n
func RunCmdOutput ¶
func ShouldNotReachHere ¶
func ShouldNotReachHere()
func ShouldNotReachHereT ¶
func ShouldNotReachHereT(msg string)
func Unimplemented ¶
func Unimplemented()
func UnimplementedT ¶
func UnimplementedT(msg string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.