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
Copy file name to clipboardExpand all lines: errors.go
+8-7Lines changed: 8 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -21,14 +21,15 @@ const (
21
21
// ErrUnsupportedValueType indicates that a value of the wrong type is being set.
22
22
ErrUnsupportedValueTypepointerError="only structs, pointers, maps and slices are supported for setting values"
23
23
24
-
// ErrDashToken indicates use of the RFC 6901 "-" reference token
25
-
// in a context where it cannot be resolved.
24
+
// ErrDashToken indicates use of the RFC 6901 "-" reference token in a context where it cannot be
25
+
// resolved.
26
26
//
27
-
// Per RFC 6901 §4 the "-" token refers to the (nonexistent) element
28
-
// after the last array element. It may only be used as the terminal
29
-
// token of a [Pointer.Set] against a slice, where it means "append".
30
-
// Any other use (get, offset, intermediate traversal, non-slice target)
31
-
// is an error condition that wraps this sentinel.
27
+
// Per RFC 6901 §4 the "-" token refers to the (nonexistent) element after the last array element.
28
+
// It may only be used as the terminal token of a [Pointer.Set] against a slice, where it means
29
+
// "append".
30
+
//
31
+
// Any other use (get, offset, intermediate traversal, non-slice target) is an error condition that
32
+
// wraps this sentinel.
32
33
ErrDashTokenpointerError=`the "-" array token cannot be resolved here`//nolint:gosec // G101 false positive: this is a JSON Pointer reference token, not a credential.
0 commit comments