Skip to content

Commit 220c384

Browse files
authored
debug: full ldflags example
1 parent 479fc10 commit 220c384

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/demoinfocs/debug_on.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ const (
1818
)
1919

2020
// Can be overridden via -ldflags="-X 'github.com/markus-wa/demoinfocs-golang/v3/pkg/demoinfocs.debugServerClasses=YES'"
21+
// e.g. `go run -tags debugdemoinfocs -ldflags="-X 'github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs.debugDemoCommands=YES'" examples/print-events/print_events.go -demo example.dem`
2122
// Oh and btw we cant use bools for this, Go says 'cannot use -X with non-string symbol'
2223
var (
2324
debugGameEvents = yes

0 commit comments

Comments
 (0)