From 767a8e74384fc69db05a98ea78a820a6f74a926b Mon Sep 17 00:00:00 2001 From: Patrick Jakubowski Date: Tue, 17 Sep 2024 16:41:02 -0700 Subject: [PATCH] cedar-go/types: embed Stringer in Value interface instead of redefining it Signed-off-by: Patrick Jakubowski --- types/value.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/types/value.go b/types/value.go index 97e55c6f..e3a44e6e 100644 --- a/types/value.go +++ b/types/value.go @@ -12,8 +12,7 @@ var ErrIP = fmt.Errorf("error parsing ip value") // Implementations of Value _must_ be able to be safely copied shallowly, which means they must either be immutable // or be made up of data structures that are free of pointers (e.g. slices and maps). type Value interface { - // String produces a string representation of the Value. - String() string + fmt.Stringer // MarshalCedar produces a valid MarshalCedar language representation of the Value. MarshalCedar() []byte // ExplicitMarshalJSON marshals the Value into JSON using the explicit (if