francoispqt / gojay

high performance JSON encoder/decoder with stream API for Golang
MIT License
2.11k stars 113 forks source link

Adding NextToken() method to decoder #147

Closed marcsantiago closed 4 months ago

marcsantiago commented 4 years ago

Decoder: Add the ability to determine the next token. This is useful within the context of mixed JSON data in the UnmarshalJSONObject implementation

fixes https://github.com/francoispqt/gojay/issues/119

codecov-commenter commented 4 years ago

Codecov Report

Merging #147 into master will increase coverage by 0.00%. The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #147   +/-   ##
=======================================
  Coverage   99.96%   99.96%           
=======================================
  Files          38       39    +1     
  Lines        5323     5339   +16     
=======================================
+ Hits         5321     5337   +16     
  Misses          1        1           
  Partials        1        1           
Impacted Files Coverage Δ
decode_token.go 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 1398296...2c2cfc8. Read the comment docs.