Skip to content

Commit

Permalink
cedar-go/types: embed Stringer in Value interface instead of redefini…
Browse files Browse the repository at this point in the history
…ng it

Signed-off-by: Patrick Jakubowski <[email protected]>
  • Loading branch information
patjakdev committed Sep 18, 2024
1 parent 4a320a5 commit 767a8e7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions types/value.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 767a8e7

Please sign in to comment.