You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Both of them panic with below error. Expecting these calls also return error like above.
panic: runtime error: index out of range [0] with length 0 [recovered]
panic: runtime error: index out of range [0] with length 0
goroutine 119 [running]:
testing.tRunner.func1.2({0x105ba35e0, 0x140004bc5b8})
/opt/homebrew/Cellar/go/1.18.1/libexec/src/testing/testing.go:1389 +0x1c8
testing.tRunner.func1()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/testing/testing.go:1392 +0x384
panic({0x105ba35e0, 0x140004bc5b8})
/opt/homebrew/Cellar/go/1.18.1/libexec/src/runtime/panic.go:838 +0x204
The text was updated successfully, but these errors were encountered:
Versions:
Go 1.18.1
jsonparser v1.1.1
jsonparser.Get
panics on array input with empty string in path. Details belowTry these
These return proper errors
Now try the below ones
Both of them panic with below error. Expecting these calls also return error like above.
The text was updated successfully, but these errors were encountered: