Replace calls to Convert methods

This commit is contained in:
Asdine El Hrychy
2020-08-04 21:56:12 +02:00
parent b2b6d230c2
commit a600b89e15
20 changed files with 148 additions and 258 deletions

View File

@@ -4,7 +4,6 @@ import (
"encoding/json"
"fmt"
"testing"
"time"
"github.com/genjidb/genji/document"
"github.com/stretchr/testify/require"
@@ -16,7 +15,6 @@ var numericFuncs = []struct {
}{
{"integer", func(x interface{}) document.Value { return document.NewIntegerValue(int64(x.(int))) }},
{"double", func(x interface{}) document.Value { return document.NewDoubleValue(float64(x.(int))) }},
{"duration", func(x interface{}) document.Value { return document.NewDurationValue(time.Duration(int64(x.(int)))) }},
}
var textFuncs = []struct {