Documentation ¶
Overview ¶
Package debug provides an easy mechanism to enable and streamline "print debugging" inspired by Rust's dbg macro.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Debug ¶
func Debug(value any)
Debug prints the file, line number and the value to stderr in a nice human-readable format.
Any internal error is printed to stderr and the process halted.
something := "hello" debug.Debug(something) // DEBUG: [/Users/you/projects/myproject/main.go:30:3] something = "hello"
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.