util

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Guarantee = Assert // More meaningful name:)

Functions

func Assert

func Assert(cond bool, format string, args ...interface{})

func CopyFile

func CopyFile(src, dst string) error

func ListFiles

func ListFiles(dir string) ([]string, error)

func ListFilesFlat

func ListFilesFlat(dir string) ([]string, error)

func PathExists

func PathExists(path string) (bool, error)

func RandomString

func RandomString(n int) string

func ReadFile

func ReadFile(filePath string) (string, error)

func RunCmd

func RunCmd(args ...string) error

func RunCmdWithOutput added in v0.0.2

func RunCmdWithOutput(args ...string) (string, error)

func ShouldNotReachHere

func ShouldNotReachHere()

func ShouldNotReachHereT

func ShouldNotReachHereT(msg string)

func StringQuote

func StringQuote(s string) string

func Unimplemented

func Unimplemented()

func UnimplementedT

func UnimplementedT(msg string)

func WriteStringToFile

func WriteStringToFile(filePath string, content string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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