Documentation ¶
Index ¶
- Constants
- Variables
- func Check(err error)
- func ColorBg(val, color string) string
- func ColorFg(val, color string) string
- func Err(msg ...interface{})
- func FileExists(path string) bool
- func GetEnv(key, fallback string) string
- func OpenBrowser(url string) error
- func PrintlnWithColor(a ...interface{})
- func RandomColor(in string) string
- func ReadLines(filePath string) (lines []string, err error)
Constants ¶
View Source
const ( FilePerm = 0644 DirPerm = 0755 )
Variables ¶
Functions ¶
func Check ¶ added in v0.0.4
func Check(err error)
Check : return the error message if the err is not nil
func FileExists ¶ added in v0.1.4
func OpenBrowser ¶ added in v0.0.8
OpenBrowser open the url in web browser
func PrintlnWithColor ¶ added in v0.3.1
func PrintlnWithColor(a ...interface{})
PrintlnWithColor fix the color of the output on Windows.
func RandomColor ¶ added in v0.2.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.