go: golint++
go: make encoder zero-value valid for encoding