Documentation ¶
Index ¶
- Variables
- func AssertEqual(expected, actual interface{}, msgAndArgs ...interface{}) bool
- func AssertEqualf(expected interface{}, actual interface{}, msg string, args ...interface{}) bool
- func AssertFalse(value bool, msgAndArgs ...interface{}) bool
- func AssertFalsef(value bool, msg string, args ...interface{}) bool
- func AssertNil(object interface{}, msgAndArgs ...interface{}) bool
- func AssertNilF(object interface{}, msg string, args ...interface{}) bool
- func AssertNotNil(object interface{}, msgAndArgs ...interface{}) bool
- func AssertNotNilF(object interface{}, msg string, args ...interface{}) bool
- func AssertTrue(value bool, msgAndArgs ...interface{}) bool
- func AssertTruef(value bool, msg string, args ...interface{}) bool
- func Debugf(format string, args ...interface{})
- func Error(args ...interface{})
- func Errorf(format string, args ...interface{})
- func Fatal(args ...interface{})
- func FatalIfError(err error, args ...interface{})
- func Fatalf(format string, args ...interface{})
- func FatalfIfError(err error, format string, args ...interface{})
- func Infof(format string, args ...interface{})
- func Panic(args ...interface{})
- func PanicIfError(err error, args ...interface{})
- func Panicf(format string, args ...interface{})
- func PanicfIfError(err error, format string, args ...interface{})
- func SetLevel(lv Level)
- func SetOutput(outputs []string)
- func TraceError(format string, args ...interface{})
- func Warnf(format string, args ...interface{})
- type Level
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DebugLevel level DebugLevel = Level(zap.DebugLevel) // InfoLevel level InfoLevel = Level(zap.InfoLevel) // WarnLevel level WarnLevel = Level(zap.WarnLevel) // ErrorLevel level ErrorLevel = Level(zap.ErrorLevel) // PanicLevel level PanicLevel = Level(zap.PanicLevel) // FatalLevel level FatalLevel = Level(zap.FatalLevel) )
Functions ¶
func AssertEqual ¶
func AssertEqual(expected, actual interface{}, msgAndArgs ...interface{}) bool
func AssertEqualf ¶
func AssertFalse ¶
func AssertFalsef ¶
func AssertNilF ¶
func AssertNotNil ¶
func AssertNotNil(object interface{}, msgAndArgs ...interface{}) bool
func AssertNotNilF ¶
func AssertTrue ¶
func AssertTruef ¶
func FatalIfError ¶
func FatalIfError(err error, args ...interface{})
func FatalfIfError ¶
func PanicIfError ¶
func PanicIfError(err error, args ...interface{})
func PanicfIfError ¶
func TraceError ¶
func TraceError(format string, args ...interface{})
TraceError prints the stack and error
Types ¶
Click to show internal directories.
Click to hide internal directories.