Skip to content

Commit b9b3124

Browse files
committed
Fix import
1 parent a013f48 commit b9b3124

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

document/value_wasm.go renamed to document/create_wasm.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
package document
22

3+
import "github.com/genjidb/genji/types"
4+
35
// NewValue creates a value from x. It only supports a few types and doesn't rely on reflection.
46
func NewValue(x interface{}) (types.Value, error) {
57
switch v := x.(type) {
68
case nil:
79
return types.NewNullValue(), nil
810
case types.Document:
911
return types.NewDocumentValue(v), nil
10-
case Array:
12+
case types.Array:
1113
return types.NewArrayValue(v), nil
1214
case int:
1315
return types.NewIntegerValue(int64(v)), nil

document/json.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,6 @@ func (j JsonDocument) MarshalJSON() ([]byte, error) {
169169
return buf.Bytes(), nil
170170
}
171171

172-
// String returns a string representation of the value. It implements the fmt.Stringer interface.
173172
func ValueToString(v types.Value) string {
174173
switch v.Type() {
175174
case types.NullValue:

0 commit comments

Comments
 (0)