From ce69b9e46c7d5b9895ead21b27222c987f70dcb4 Mon Sep 17 00:00:00 2001 From: re Date: Mon, 12 Dec 2022 18:20:31 +0300 Subject: [PATCH] fix repos --- go.mod | 4 ++-- go.sum | 4 ++-- grect.go | 3 ++- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/go.mod b/go.mod index 7f83609..6e6cd96 100644 --- a/go.mod +++ b/go.mod @@ -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 diff --git a/go.sum b/go.sum index 1a9d4de..6b4fa66 100644 --- a/go.sum +++ b/go.sum @@ -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= diff --git a/grect.go b/grect.go index 13eb761..9d70bb9 100644 --- a/grect.go +++ b/grect.go @@ -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() {