Documentation ¶
Index ¶
- func ColorPrint(s string, i int)
- func IsEmpty(value ...interface{}) bool
- func NewDebounce(delay time.Duration) *debounce
- func PathConcat(paths ...string) string
- func PathExists(path string) bool
- func RandomString(n int, allowedChars ...[]rune) string
- func TestColor()
- func ToJson(data interface{}) ([]byte, error)
- type Color
- type Queue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PathExists ¶
func RandomString ¶
RandomString returns a random string with a fixed length
Types ¶
type Color ¶
type Color struct { Red int // 红色 Purple int // 紫色 Yellow int // 黄色 Light_gray int // 淡灰色(系统默认值) Gray int // 灰色 Light_blue int // 亮蓝色 Light_green int // 亮绿色 Light_cyan int // 亮青色 Light_red int // 亮红色 Light_purple int // 亮紫色 Light_yellow int // 亮黄色 White int // 白色 // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.