Documentation ¶
Overview ¶
Package butil bin util package will not run the init(), but bin will
Index ¶
- func AppFilename() string
- func AppName() string
- func Basedir() string
- func Clear() error
- func DetectPath(vPath string) string
- func InputOption(title, def string) string
- func InputRequire(title string, validFunc func(string) bool) string
- func Pwd(joins ...string) string
- func RootPath(vPath string) string
- func StringToArgs(str string) []string
- func StringToMultiArgs(str string) [][]string
- type BinInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppFilename ¶ added in v1.3.0
func AppFilename() string
func DetectPath ¶ added in v1.3.0
DetectPath detect path by give relative or absolute path, can correct incorrect paths normally.
func InputOption ¶ added in v1.2.0
InputOption need input data from stdin optional
func InputRequire ¶ added in v1.2.0
InputRequire required input data from stdin
func StringToArgs ¶
StringToArgs make the string to bin/Args, it's used in interactive cli
func StringToMultiArgs ¶
StringToMultiArgs string line parse multi line, support ";" split.
Types ¶
Click to show internal directories.
Click to hide internal directories.