fix repos

This commit is contained in:
re 2022-12-12 18:20:31 +03:00
parent f6c7ae3113
commit ce69b9e46c
3 changed files with 6 additions and 5 deletions

4
go.mod
View File

@ -1,5 +1,5 @@
module github.com/tidwall/grect
module git.internal/re/grect
go 1.15
require github.com/tidwall/gjson v1.12.1
require git.internal/re/gjson v1.14.4

4
go.sum
View File

@ -1,5 +1,5 @@
github.com/tidwall/gjson v1.12.1 h1:ikuZsLdhr8Ws0IdROXUS1Gi4v9Z4pGqpX/CvJkxvfpo=
github.com/tidwall/gjson v1.12.1/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk=
git.internal/re/gjson v1.14.4 h1:h247IjFbi0EbPbaP9uhmjF4d4BBZdzp3IqVdPbOfNlQ=
git.internal/re/gjson v1.14.4/go.mod h1:nWhPHhrw7k8ssdzMTMcw6ButkZOJV9xeqauMiGbDEmo=
github.com/tidwall/match v1.1.1 h1:+Ho715JplO36QYgwN9PGYNhgZvoUSc9X2c80KVTi+GA=
github.com/tidwall/match v1.1.1/go.mod h1:eRSPERbgtNPcGhD8UCthc6PmLEQXEWd3PRB5JTxsfmM=
github.com/tidwall/pretty v1.2.0 h1:RWIZEg2iJ8/g6fDDYzMpobmaoGh5OLl4AXtGUGPcqCs=

View File

@ -4,7 +4,7 @@ import (
"strconv"
"strings"
"github.com/tidwall/gjson"
"git.internal/re/gjson"
)
type Rect struct {
@ -280,6 +280,7 @@ end_early:
done:
return min, max, i
}
func getGeoJSON(s string, i int) (min, max []float64, ri int) {
json := s[i:]
switch gjson.Get(json, "type").String() {