diff options
| author | Stefan Majewsky <majewsky@gmx.net> | 2026-10-12 22:35:21 +0200 |
|---|---|---|
| committer | Stefan Majewsky <majewsky@gmx.net> | 2026-10-12 22:35:21 +0200 |
| commit | 8f6f95650d876376664f1e5a04d9c4cf369468d8 (patch) | |
| tree | c8bdbd6e8272f4bb3cde393fd24b1f63b2fe04be /jsonmatch/interface.go | |
| parent | 3332671795b3a0b605c3b1d0d10c4085354e4c60 (diff) | |
| download | go-gg-8f6f95650d876376664f1e5a04d9c4cf369468d8.tar.gz | |
jsonmatch: make type Pointer a synonym for jsonmatch.Pointer
Diffstat (limited to 'jsonmatch/interface.go')
| -rw-r--r-- | jsonmatch/interface.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/jsonmatch/interface.go b/jsonmatch/interface.go index b0aa490..f54da50 100644 --- a/jsonmatch/interface.go +++ b/jsonmatch/interface.go @@ -132,6 +132,7 @@ package jsonmatch // import "go.xyrillian.de/gg/jsonmatch" import ( "encoding/json" + "encoding/json/jsontext" "errors" "fmt" ) @@ -252,8 +253,8 @@ func (d Diff) String() string { // Pointer is a JSON pointer (RFC 6901) that references a particular JSON value relative to the root of the encoded JSON payload that was given to DiffAgainst(). // It appears in type [Diff]. // -// This type is intended to become synonymous with encoding/json/jsontext.Pointer once that type is stabilized. -type Pointer string +// Deprecated: Use jsontext.Pointer directly. +type Pointer = jsontext.Pointer // CaptureField returns a capture slot that can be placed in an [Object] or [Array] instance to capture individual non-deterministic values during an assertion. // Please refer to the package documentation for details and usage examples. |
