Documentation ¶
Index ¶
- Constants
- func Assert(predict bool, v ...interface{})
- func Assertf(predict bool, format string, v ...interface{})
- func Assertln(predict bool, v ...interface{})
- func Print(v ...interface{})
- func Printf(format string, v ...interface{})
- func Println(v ...interface{})
- func SetPrefix(s string)
- func Trace(int)
Constants ¶
const ON = false
ON reports whether debug mode is enabled.
Variables ¶
This section is empty.
Functions ¶
func Assert ¶
func Assert(predict bool, v ...interface{})
Assert print message to the std logger and call panic() when predict is false and debug mode is enabled. Do nothing otherwise.
func Assertf ¶
Assertf print message to the std logger and call panic() when predict is false and debug mode is enabled. Do nothing otherwise.
func Assertln ¶
func Assertln(predict bool, v ...interface{})
Assertln print message to the std logger and call panic() when predict is false and debug mode is enabled. Do nothing otherwise.
func Print ¶
func Print(v ...interface{})
Print print message to the std logger if debug mode is enabled. Arguments are handled in the manner of fmt.Print.
func Printf ¶
func Printf(format string, v ...interface{})
Printf print message to the std logger if debug mode is enabled. Arguments are handled in the manner of fmt.Printf.
Types ¶
This section is empty.