go build

built-in
0.0% Savings
0 Commands
0 Tokens saved
2 Tests

Install

tokf install e636791b214efa72ca606a68362f98251a3e66870542b00cfde90ac82c24ca9e
Safety checks passed

Filter definition

command = "go build"
keep = ["\\.go:\\d+"]

[on_success]
output = "✓ go build: ok"

[on_failure]
tail = 30

Examples

compile error shows file references ~38 tokens → ~34 tokens (11% saved)
Raw output
# myproject/cmd
./main.go:15:2: undefined: foo
./main.go:20:10: cannot use x (variable of type string) as int
./utils.go:8:5: declared and not used: result
Filtered output
./main.go:15:2: undefined: foo
./main.go:20:10: cannot use x (variable of type string) as int
./utils.go:8:5: declared and not used: result
clean build collapses to single line ~0 tokens → ~4 tokens
Raw output
 
Filtered output
✓ go build: ok
Warning: Community filters are third-party code. Review the filter definition above before installing it in production environments.
Browse all filters