An common suggestion is a '-no-warn-unused' flag, and the objection is 'if a feature exists, it will be used in production'
I haven't heard of someone suggesting to ignore dead code on 'go run .' and erroring on 'go build', but it looks like the perfect solution
mboon•1h ago
I think the flag works fine as a solution.