chore: Adding Go-linting and code cleaning #prealloc

Happyprg
1 min readFeb 4, 2020

--

➜  a git:(issue/429) ✗  go test -bench=. -benchmem
goos: darwin
goarch: amd64
pkg: github.com/line/link/x/safetybox/internal/keeper/a
BenchmarkNoPreallocate-8 6290323 182 ns/op 248 B/op 5 allocs/op
BenchmarkPreallocate-8 27583668 40.4 ns/op 80 B/op 1 allocs/op
PASS

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

No responses yet

Write a response