debug

package
v0.0.0-...-77951e0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package debug provides compiled assertions, debug and warn level logging.

To enable runtime debug or warn level logging, build with the debug or warn tags respectively. Building with the debug tag will enable the warn level logger automatically. When the debug and warn tags are omitted, the code for the logging will be ommitted from the binary.

To enable runtime assertions, build with the assert tag. When the assert tag is omitted, the code for the assertions will be ommitted from the binary.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assert

func Assert(cond bool, msg interface{})

Assert will panic with msg if cond is false.

func Debug

func Debug(interface{})

func Warn

func Warn(interface{})

func Warnf

func Warnf(format string, v ...interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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