Commit Graph

2 Commits (9dbbb518d19a4067ab28b1aaff4a5c536340a746)

Author SHA1 Message Date
Daniel Martí 23f9f54102 scripts: no need for this directory to be a Go package
It's perfectly fine for bench_literals.go to be a main package itself,
but the scripts directory doesn't need to be a Go package

This was bothering me at times; for example, "go list ./..." would
show the scripts directory, or "go install mvdan.cc/garble/..." would
build and install a "scripts" binary as well.

The file can still be built or run directly, like either of:

    go build bench_literals.go
    go run bench_literals.go
1 year ago
pagran 9a8608f061
internal/literals: add benchmark to measure the run-time overhead 1 year ago