package debug
import "github.com/apache/arrow/go/v10/parquet/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.
Index ¶
Functions ¶
func Assert ¶
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 ¶
func Log(interface{})
Source Files ¶
assert_off.go doc.go log_off.go
- Version
- v10.0.1 (latest)
- Published
- Nov 15, 2022
- Platform
- linux/amd64
- Last checked
- 12 hours ago –
Tools for package owners.