Documentation ¶
Index ¶
- Variables
- func Contains(strs []string, target string) bool
- func ExecCommand(command ...string) (string, error)
- func Exists(path string) bool
- func ExpandPath(pa string) string
- func FormatErrorAtLine(file string, line int, message string) string
- func GetAllDir(dir string) []string
- func GetCurrentPath() string
- func GetHomeDir() string
- func PrepareDir(dir string)
- func Print(str string)
- func PrintArgumentError(num int)
- func PrintArgumentMoreError(num int)
- func PrintDebug(str string)
- func PrintErrorMessage(err string)
- func PrintErrorMessageContinue(err string)
- func PrintErrors(errs ...error)
- func PrintErrorsContinue(errs ...error) bool
- func ReadFile(name string) []string
- func Remove(strs []string, target string) []string
- func RemoveDir(name string)
- func Setenv(key, value string)
- func Wrap(strs []string) [][]string
- func WriteFile(name string, data []string)
- func YNPrompt(prompt string, yes bool) bool
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Debug = false Quiet = false )
Functions ¶
func ExecCommand ¶
func ExpandPath ¶
func GetCurrentPath ¶
func GetCurrentPath() string
func GetHomeDir ¶
func GetHomeDir() string
func PrepareDir ¶
func PrepareDir(dir string)
func PrintArgumentError ¶
func PrintArgumentError(num int)
func PrintArgumentMoreError ¶
func PrintArgumentMoreError(num int)
func PrintDebug ¶
func PrintDebug(str string)
func PrintErrorMessage ¶
func PrintErrorMessage(err string)
func PrintErrorMessageContinue ¶
func PrintErrorMessageContinue(err string)
func PrintErrors ¶
func PrintErrors(errs ...error)
func PrintErrorsContinue ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.