Documentation
¶
Index ¶
- Constants
- func DelayDo(d time.Duration, fn func())
- func GetNextColor() color
- func Hold()
- func IsDev() bool
- func IsDigits(s string) bool
- func IsNil[T any](v T) bool
- func LogMessage(message string)
- func PPrint(obj interface{})
- func PrintlnColor(c color, text string)
- func RetryWork(work func() error, retryTimes int)
Constants ¶
View Source
const ( Red color = iota Green BrightBlue Magenta // 紫色 Cyan // 青色 )
Variables ¶
This section is empty.
Functions ¶
func GetNextColor ¶ added in v0.18.0
func GetNextColor() color
func IsNil ¶ added in v0.19.0
IsNil returns true if v is a nil value for nilable kinds or an untyped nil interface.
func LogMessage ¶
func LogMessage(message string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.