GitPedia
segmentio

segmentio/encoding

Go package containing implementations of efficient encoding, decoding, and validation APIs.

16 Releases
Latest: 3mo ago
v0.5.4Latest
kalamaykalamay·3mo ago·March 12, 2026
GitHub

📋 What's Changed

  • fix: Validate key length on assignment in decodeStruct by @maciej-kisiel in https://github.com/segmentio/encoding/pull/162
  • Full Changelog: https://github.com/segmentio/encoding/compare/v0.5.3...v0.5.4
v0.5.3
extemporalgenomeextemporalgenome·10mo ago·July 29, 2025
GitHub

📋 What's Changed

  • lint fixes by @extemporalgenome in https://github.com/segmentio/encoding/pull/151
  • Full Changelog: https://github.com/segmentio/encoding/compare/v0.5.2...v0.5.3
v0.5.2: address performance regression in json decodingv0.5.2
dominicbarnesdominicbarnes·11mo ago·July 18, 2025
GitHub

📋 What's Changed

  • perf(json): address performance penalty found in json decoding by @dominicbarnes in https://github.com/segmentio/encoding/pull/149

New Contributors

  • @dominicbarnes made their first contribution in https://github.com/segmentio/encoding/pull/149
  • Full Changelog: https://github.com/segmentio/encoding/compare/v0.5.1...v0.5.2
v0.5.1: json parity with stdlib for \b and \f encodingv0.5.1
extemporalgenomeextemporalgenome·1y ago·June 9, 2025
GitHub

📋 What's Changed

  • json: encode \b and \f like the Go 1.22 stdlib does by @extemporalgenome in https://github.com/segmentio/encoding/pull/145
  • lint fixes by @extemporalgenome in https://github.com/segmentio/encoding/pull/146
  • Full Changelog: https://github.com/segmentio/encoding/compare/v0.5.0...v0.5.1
v0.5.0: protobuf rewrite rule overridesv0.5.0
extemporalgenomeextemporalgenome·1y ago·June 9, 2025
GitHub

📋 What's Changed

  • .github: fix security vuln by @kevinburkesegment in https://github.com/segmentio/encoding/pull/142
  • Add protobuf rewrite rule overrides by @kalamay in https://github.com/segmentio/encoding/pull/144
  • Full Changelog: https://github.com/segmentio/encoding/compare/v0.4.0...v0.5.0
v0.4.0: configurable numeric decoding supportv0.4.0
extemporalgenomeextemporalgenome·2y ago·December 4, 2023
GitHub

When decoding into `any`, `ParseFlags` can now be used to control decoding into any combination of `uint64`, `int64`, and `*big.Int`, in addition to the prior support for `json.Number` and `float64`. Choice of type will depend on each value encountered, and as before, when `json.Number` is requested, `float64` will not be used.

v0.3.7: tolerate leading spacing in json.RawMessagev0.3.7
extemporalgenomeextemporalgenome·2y ago·November 27, 2023
GitHub
v0.3.6
chrisochriso·3y ago·October 7, 2022
GitHub

📋 What's Changed

  • Added a `Remaining() int` method to `json.Tokenizer` by @chriso in https://github.com/segmentio/encoding/pull/126
  • Enabled a slice optimization for go1.18 and go1.19 by @chriso in https://github.com/segmentio/encoding/pull/127
  • Full Changelog: https://github.com/segmentio/encoding/compare/v0.3.5...v0.3.6
v0.3.5
achille-rousselachille-roussel·4y ago·April 26, 2022
GitHub

📋 What's Changed

  • fix decoding lists of TRUE values by @achille-roussel in https://github.com/segmentio/encoding/pull/122
  • Full Changelog: https://github.com/segmentio/encoding/compare/v0.3.4...v0.3.5
v0.3.4
achille-rousselachille-roussel·4y ago·February 16, 2022
GitHub

📋 What's Changed

  • Encoder: add SetAddExtraNewline option to json.Encoder by @Jerska in https://github.com/segmentio/encoding/pull/119

New Contributors

  • @Jerska made their first contribution in https://github.com/segmentio/encoding/pull/119
  • Full Changelog: https://github.com/segmentio/encoding/compare/v0.3.3...v0.3.4
v0.3.3
achille-rousselachille-roussel·4y ago·February 16, 2022
GitHub

📋 What's Changed

  • purego fix by @chriso in https://github.com/segmentio/encoding/pull/111
  • Speed up integer parsing by @chriso in https://github.com/segmentio/encoding/pull/112
  • Optimize short string parsing (part 2) by @chriso in https://github.com/segmentio/encoding/pull/113
  • Improved field lookup for small structs (arm64) by @chriso in https://github.com/segmentio/encoding/pull/114
  • Fixes Bool method comment by @Succo in https://github.com/segmentio/encoding/pull/115
  • README: note where to find CPU/memory details by @kevinburkesegment in https://github.com/segmentio/encoding/pull/116
  • thrift: allow reusing struct fields by @achille-roussel in https://github.com/segmentio/encoding/pull/117

New Contributors

  • @Succo made their first contribution in https://github.com/segmentio/encoding/pull/115
  • @kevinburkesegment made their first contribution in https://github.com/segmentio/encoding/pull/116
  • Full Changelog: https://github.com/segmentio/encoding/compare/v0.3.2...v0.3.3
v0.3.2
achille-rousselachille-roussel·4y ago·February 16, 2022
GitHub
v0.3.1
achille-rousselachille-roussel·4y ago·November 13, 2021
GitHub

📋 What's Changed

  • add test for issue 107 by @achille-roussel in https://github.com/segmentio/encoding/pull/108
  • Full Changelog: https://github.com/segmentio/encoding/compare/v0.3.0...v0.3.1
v0.3.0
achille-rousselachille-roussel·4y ago·November 13, 2021
GitHub

This release adds a new thrift package with encoder/decoder to work with the thrift format, including support for the binary and compact protocols.

v0.1.12
yolken-segmentyolken-segment·6y ago·May 11, 2020
GitHub
v0.1.10
pelletierpelletier·6y ago·January 23, 2020
GitHub