mdaverde / jsonpath

jsonpath golang library to help with getting and setting values on paths (even nonexistent paths)
https://pkg.go.dev/github.com/mdaverde/jsonpath
MIT License
22 stars 5 forks source link

make returned errors public constants #3

Open boindil opened 2 years ago

boindil commented 2 years ago

declaring the returned errors as public constants would allow to add custom error handling while using this lib.

I for instance would like to handle the errors on .Get, but I'd like to decide what to do based on the specific error.

P.S.: is this project still alive? In #2 you said, that you were going to grow out the lib soon

P.P.S.: it has already been done for the DoesNotExist error, it's just not consistent.