File tree Expand file tree Collapse file tree 2 files changed +19
-16
lines changed Expand file tree Collapse file tree 2 files changed +19
-16
lines changed Original file line number Diff line number Diff line change @@ -2,22 +2,6 @@ package types
2
2
3
3
import "context"
4
4
5
- // Value is JSON value
6
- type Value interface {
7
- // Invert returns inverted value/operation.
8
- // All type values are invertible.
9
- // Literals like string,number,... return itself as-is.
10
- // If argument type or arity is different, this returns non-nil error.
11
- Invert () (Value , error )
12
-
13
- // Eval returns a evaluated value.
14
- // Literals like string,number,... return itself as-is.
15
- Eval (ctx context.Context ) (val Value , rollback func (), err error )
16
-
17
- // Type returns the type of this value.
18
- Type () Type
19
- }
20
-
21
5
// ================ Null ================
22
6
23
7
// Null is JSON null struct
Original file line number Diff line number Diff line change
1
+ package types
2
+
3
+ import "context"
4
+
5
+ // Value is JSON value
6
+ type Value interface {
7
+ // Invert returns inverted value/operation.
8
+ // All type values are invertible.
9
+ // Literals like string,number,... return itself as-is.
10
+ // If argument type or arity is different, this returns non-nil error.
11
+ Invert () (Value , error )
12
+
13
+ // Eval returns a evaluated value.
14
+ // Literals like string,number,... return itself as-is.
15
+ Eval (ctx context.Context ) (val Value , rollback func (), err error )
16
+
17
+ // Type returns the type of this value.
18
+ Type () Type
19
+ }
You can’t perform that action at this time.
0 commit comments