Releases: Andrew-M-C/go.jsonvalue
Releases · Andrew-M-C/go.jsonvalue
v1.4.1
Release jsonvalue v1.4.1. Comparing to v1.4.0:
- Add
v.At(...).Set(...)
pattern, allowing putting keys ahead (comparing tov.Set(...).At(...)
).
Full Changelog: v1.4.0...v1.4.1
v1.4.0
Release jsonvalue v1.4.0. Comparing to v1.3.8:
- Use MIT license instead of BSD 3-Clause.
- Allow passing parameter with a single slice or array for Get, Set, Append, Insert, Delete methods.
- Add GreaterThan, LessThan, GreaterThanOrEqual, LessThanOrEqual methods for numeric comparation.
Full Changelog: v1.3.8...v1.4.0
v1.3.8
v1.3.7
v1.3.6
v1.3.5
v1.3.4
Release jsonvalue v1.3.4. Comparing to v1.3.3:
- Type
*jsonvalue.V
now implements following interfaces thus it can used directly inencoding/json
:json.Marshaler
、json.Unmarshaler
encoding.BinaryMarshaler
、encoding.BinaryUnmarshaler
- Supports importing data types those implement
json.Marshaler
orencoding.TextMarshaler
interfaces, just likeencoding/json
does. - Add
MustAdd
,MustAppend
,MustInsert
,MustSet
,MustDelete
methods. These methods will not return sub-values or errors.- This will prevent golangci-lint warning of "return value is not used"
- Bug fix: When invoking
Append(xxx).InTheBeginning()
, the sub-value was actually and faulty append to the end. - Pre-allocate some buffer and space when marshaling and unmarshaling. It will speed-up a little bit and save 40% alloc count by average.