vvvvv/dlg
View on GitHub ↗ ★ 165 Go
Printf-Style Debugging with Zero-Cost in Production Builds
3 mentions on Hacker News by 2 people: 1 story, 2 comments · first 2025-07-27 · latest 2025-07-31
20082026
-
…and what to watch out for to ensure that calls to dlg.Printf can actually be eliminated: https://github.com/vvvvv/dlg?tab=readme-ov-file#true-zero-co... I'd appreciate any feedback on whether these changes make the behavior more…
comment by 0xFEE1DEAD · 2025-07-31 · in Show HN: Dlg – Zero-cost printf-style debugging for Go -
…to show that you're right and that code isn't dead so it can't be eliminated: package main import ( "fmt" "github.com/vvvvv/dlg" ) func risky() error { _, err := fmt.Printf("unexpected error\n") return err } func main() {…
comment by llimllib · 2025-07-30 · in Show HN: Dlg – Zero-cost printf-style debugging for Go