go: optimize tests
go: use json.Encoder in update-test +typo
go: refactor plaintext test
go: more (minor) refactoring

Also fixes printing a wrong string in the JSON test
go: update config
Merge branch 'go-optimize' of https://github.com/JulienSchmidt/FrameworkBenchmarks into JulienSchmidt-go-optimize