debug

package
v0.0.0-...-b05aa3b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2019 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
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

func Assertf(predict bool, format string, v ...interface{})

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.

func Println

func Println(v ...interface{})

Println print message to the std logger if debug mode is enabled. Arguments are handled in the manner of fmt.Println.

func SetPrefix

func SetPrefix(s string)

SetPrefix set the prefix for debug messages.

func Trace

func Trace(int)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL