Documentation
¶
Index ¶
- func ConsoleBlue(content string)
- func ConsoleCyan(content string)
- func ConsoleGreen(content string)
- func ConsoleRed(content string)
- func ConsoleYellow(content string)
- func CreateFileIfNotExist(filePath string) error
- func GenRandomNumber(min, max int) int
- func HttpGet(client *http.Client, url string) (*http.Response, error)
- func MkdirIfNotExist(path string) error
- func WordBlue(format string, v ...interface{}) string
- func WordCyan(format string, v ...interface{}) string
- func WordGreen(format string, v ...interface{}) string
- func WordRed(format string, v ...interface{}) string
- func WordYellow(format string, v ...interface{}) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConsoleBlue ¶
func ConsoleBlue(content string)
func ConsoleCyan ¶
func ConsoleCyan(content string)
func ConsoleGreen ¶
func ConsoleGreen(content string)
func ConsoleRed ¶
func ConsoleRed(content string)
func ConsoleYellow ¶
func ConsoleYellow(content string)
func CreateFileIfNotExist ¶
CreateFileIfNotExist 检查文件是否存在,如果不存在则创建
func GenRandomNumber ¶
GenRandomNumber 生成指定范围内的随机数 min: 最小值,max: 最大值
func MkdirIfNotExist ¶
MkdirIfNotExist 检查目录是否存在,如果不存在则创建 该函数会创建所有必要的父目录 例如,如果路径是 "/a/b/c",而 "/a" 和 "/a/b" 不存在,则会创建 "/a" 和 "/a/b" 如果路径已经存在,则不会执行任何操作
func WordYellow ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.