arrow: github.com/apache/arrow/go/arrow/internal/debug Index | Files

package debug

import "github.com/apache/arrow/go/arrow/internal/debug"

Package debug provides APIs for conditional runtime assertions and debug logging.

Using Assert

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

Using Log

To enable runtime debug logs, build with the debug tag. When the debug tag is omitted, the code for logging will be omitted from the binary.

Index

Package Files

assert_off.go doc.go log_off.go

func Assert Uses

func Assert(cond bool, msg interface{})

Assert will panic with msg if cond is false.

msg must be a string, func() string or fmt.Stringer.

func Log Uses

func Log(interface{})

Package debug is imported by 8 packages. Updated 2018-03-29. Refresh now. Tools for package owners.