utils

package
v0.2.16 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

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 ColorBg added in v0.2.13

func ColorBg(val, color string) string

func ColorFg added in v0.2.6

func ColorFg(val, color string) string

func CopyFile added in v0.2.16

func CopyFile(source string, target string)

func Err added in v0.0.3

func Err(msg ...interface{})

Err : return the error message,then exit

func FileExists added in v0.1.4

func FileExists(path string) bool

func GetEnv added in v0.0.4

func GetEnv(key, fallback string) string

GetEnv : get env, if not exist use fallback value

func OpenBrowser added in v0.0.8

func OpenBrowser(url string) error

OpenBrowser open the url in web browser

func RandomColor added in v0.2.0

func RandomColor(in string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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