Registry / logging / lestrrat-go-pdebug

lestrrat-go-pdebug

JSON →
librarygogounverified

A debug logging library that is no-op unless compiled with the `debug` build tag.

go get github.com/lestrrat-go/pdebug
INSTALL
IMPORT
SIG · LESTRRAT-GO-PDEBUG
L
lestrrat-go-pdebug
logginggo
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

pdebug
github.com/lestrrat-go/pdebug

Conditionally print debug messages when the debug build tag is enabled.

package main import ( "github.com/lestrrat-go/pdebug" ) func main() { if pdebug.Enabled { pdebug.Printf("This is a debug message") } }
Debug
Known issues
gotchaDebug output is only shown when compiled with -tags debug or -tags debug0.
fix
Add -tags debug to your go build or go run command.
affects: *
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Dependencies

No dependency data recorded yet.

Agent activity
24 hits · last 30 days
node
22
OpenAI (training)
1
Resources
lestrrat-go-pdebug — go get lestrrat-go-pdebug · libregistry