As title. No functional changes.
Errors fixed include those from staticcheck, obtained via
staticcheck ./... | grep -vE 'ST1017|SA9004|ST1008|S1019' (filtering out annoying warnings)
Use bytes.Equal instead of bytes.Compare
Explicitly specify key when declaring structs
Remove unneeded struct names
Close fds after checking error to ensure that it is opened
Summary
As title. No functional changes. Errors fixed include those from
staticcheck
, obtained viastaticcheck ./... | grep -vE 'ST1017|SA9004|ST1008|S1019'
(filtering out annoying warnings)bytes.Equal
instead ofbytes.Compare
Print
instead ofPrintf
as necessaryTest plan
Unit tests pass (
go test ./...
)