Constructor: one less array copy

Keep the storage allocated by strings.Split() and just use a shorter
slice instead of allocating a brand new array and copying to it.
1 file changed
tree: 48383bd884bef672da12a41faee2484c578c02d5
  1. LICENSE-APACHE-2.0.txt
  2. pointer.go
  3. pointer_test.go
  4. README.md
README.md

gojsonpointer

An implementation of JSON Pointer - Go language

References

http://tools.ietf.org/html/draft-ietf-appsawg-json-pointer-07

Note

The 4.Evaluation part of the previous reference, starting with ‘If the currently referenced value is a JSON array, the reference token MUST contain either...’ is not implemented.