Documentation ¶
Index ¶
- Constants
- func ColorString(s string, color int) string
- func Err(errType, msg string, args ...interface{}) *commonErr
- func ErrorString(fmtStr string, args ...interface{})
- func FatalError(err error)
- func FatalString(fmtStr string, args ...interface{})
- func FlashTerminal(value string)
- func FlashTerminalLen(length int)
- func IsBytesGBK(data []byte) bool
- func IsBytesUtf8(data []byte) bool
- func Log(fmtStr string, args ...interface{})
- func ShowFatalError(op string, err error)
- func ShowLog(on bool)
- func WithDelay(ctx Context, doneFunc func())
- type ConfParam
- type Context
Constants ¶
View Source
const ( ColorFontGreen = iota ColorFontRed ColorFontYellow )
Variables ¶
This section is empty.
Functions ¶
func ColorString ¶
func ErrorString ¶
func ErrorString(fmtStr string, args ...interface{})
func FatalError ¶
func FatalError(err error)
func FatalString ¶
func FatalString(fmtStr string, args ...interface{})
func FlashTerminal ¶
func FlashTerminal(value string)
func FlashTerminalLen ¶
func FlashTerminalLen(length int)
func IsBytesGBK ¶
func IsBytesUtf8 ¶
func ShowFatalError ¶
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
func NewContext ¶
func NewContext() Context
Source Files ¶
Click to show internal directories.
Click to hide internal directories.