From 8f6f95650d876376664f1e5a04d9c4cf369468d8 Mon Sep 17 00:00:00 2001 From: Stefan Majewsky Date: Mon, 12 Oct 2026 22:35:21 +0200 Subject: jsonmatch: make type Pointer a synonym for jsonmatch.Pointer --- jsonmatch/interface.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'jsonmatch') 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. -- cgit v1.3.1