From 7c62ed1a6b8f0397355d12298de09ab996764991 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96zg=C3=BCr=20Kesim?= Date: Tue, 18 Jun 2019 13:49:22 +0200 Subject: [PATCH] vektah -> oec to make it self-contained --- calc/calc.go | 2 +- go.mod | 10 ++++++++++ go.sum | 10 ++++++++++ html/html.go | 2 +- html/html_test.go | 2 +- json/json.go | 2 +- json/json_test.go | 2 +- json/profile/json.go | 4 ++-- 8 files changed, 27 insertions(+), 7 deletions(-) create mode 100644 go.mod create mode 100644 go.sum diff --git a/calc/calc.go b/calc/calc.go index a4d6f8a..1f7dc6a 100644 --- a/calc/calc.go +++ b/calc/calc.go @@ -3,7 +3,7 @@ package calc import ( "fmt" - . "github.com/vektah/goparsify" + . "github.com/oec/goparsify" ) var ( diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..4dea363 --- /dev/null +++ b/go.mod @@ -0,0 +1,10 @@ +module github.com/oec/goparsify + +go 1.12 + +require ( + github.com/davecgh/go-spew v1.1.0 // indirect + github.com/pmezard/go-difflib v1.0.0 // indirect + github.com/prataprc/goparsec v0.0.0-20170801142144-82de4f9400c2 + github.com/stretchr/testify v1.1.4 +) diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..29b2c70 --- /dev/null +++ b/go.sum @@ -0,0 +1,10 @@ +github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/prataprc/goparsec v0.0.0-20170801142144-82de4f9400c2 h1:JBQTPu1dlxC7Mp/lbF8WQMH206np5ZJYFbVyfjF9HL0= +github.com/prataprc/goparsec v0.0.0-20170801142144-82de4f9400c2/go.mod h1:YbpxZqbf10o5u96/iDpcfDQmbIOTX/iNCH/yBByTfaM= +github.com/stretchr/testify v1.1.4 h1:ToftOQTytwshuOSj6bDSolVUa3GINfJP/fg3OkkOzQQ= +github.com/stretchr/testify v1.1.4/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= +github.com/vektah/goparsify v0.0.0-20180611020250-3e20a3b9244a h1:kjtLFYYtOh6EJz4svAJjY4apt9SJFQxe23e0mzTnlng= +github.com/vektah/goparsify v0.0.0-20180611020250-3e20a3b9244a/go.mod h1:DSfslQMj3gv774kof/dg5pwh62XUjimkRBoF2DgdyaY= diff --git a/html/html.go b/html/html.go index f6a715b..ce98d6c 100644 --- a/html/html.go +++ b/html/html.go @@ -1,7 +1,7 @@ package html import ( - . "github.com/vektah/goparsify" + . "github.com/oec/goparsify" ) func parse(input string) (result interface{}, err error) { diff --git a/html/html_test.go b/html/html_test.go index 79b0191..f0c2ac0 100644 --- a/html/html_test.go +++ b/html/html_test.go @@ -4,8 +4,8 @@ import ( "os" "testing" + "github.com/oec/goparsify" "github.com/stretchr/testify/require" - "github.com/vektah/goparsify" ) func TestParse(t *testing.T) { diff --git a/json/json.go b/json/json.go index 18f6870..ca1a905 100644 --- a/json/json.go +++ b/json/json.go @@ -1,7 +1,7 @@ package json import ( - . "github.com/vektah/goparsify" + . "github.com/oec/goparsify" ) var ( diff --git a/json/json_test.go b/json/json_test.go index 13f2e40..097bc34 100644 --- a/json/json_test.go +++ b/json/json_test.go @@ -6,9 +6,9 @@ import ( "os" + "github.com/oec/goparsify" parsecJson "github.com/prataprc/goparsec/json" "github.com/stretchr/testify/require" - "github.com/vektah/goparsify" ) func TestUnmarshal(t *testing.T) { diff --git a/json/profile/json.go b/json/profile/json.go index b7d9733..d02b5fa 100644 --- a/json/profile/json.go +++ b/json/profile/json.go @@ -7,8 +7,8 @@ import ( "runtime" "runtime/pprof" - "github.com/vektah/goparsify" - "github.com/vektah/goparsify/json" + "github.com/oec/goparsify" + "github.com/oec/goparsify/json" ) var cpuprofile = flag.String("cpuprofile", "", "write cpu profile to file")