From cca985bff7615fa57401cf0e0261f99a389fab53 Mon Sep 17 00:00:00 2001 From: ChronosX88 Date: Wed, 2 Oct 2019 13:54:53 +0400 Subject: [PATCH] chore: Add go module, changed name of project --- README.md | 14 +++++++------- go.mod | 8 ++++++++ go.sum | 13 +++++++++++++ gun/doc.go | 2 +- gun/tests/context_test.go | 2 +- gun/tests/gun_test.go | 2 +- 6 files changed, 31 insertions(+), 10 deletions(-) create mode 100644 go.mod create mode 100644 go.sum diff --git a/README.md b/README.md index 02ee948..d46e0c0 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ -# Esgopeta [![GoDoc](https://godoc.org/github.com/cretz/esgopeta/gun?status.svg)](https://godoc.org/github.com/cretz/esgopeta/gun) +# go-gun [![GoDoc](https://godoc.org/github.com/ChronosX88/go-gun/gun?status.svg)](https://godoc.org/github.com/ChronosX88/go-gun/gun) -Esgopeta is a Go implementation of the [Gun](https://github.com/amark/gun) distributed graph database. See the -[Godoc](https://godoc.org/github.com/cretz/esgopeta/gun) for API details. +go-gun is a Go implementation of the [Gun](https://github.com/amark/gun) distributed graph database. See the +[Godoc](https://godoc.org/github.com/ChronosX88/go-gun/gun) for API details. **WARNING: This is an early proof-of-concept alpha version. Many pieces are not implemented or don't work.** @@ -18,7 +18,7 @@ Not yet implemented: ### Usage -The package is `github.com/cretz/esgopeta/gun` which can be fetched via `go get`. To listen to database changes for a +The package is `github.com/ChronosX88/go-gun/gun` which can be fetched via `go get`. To listen to database changes for a value, use `Fetch`. The example below listens for updates on a key for a minute: ```go @@ -29,7 +29,7 @@ import ( "log" "time" - "github.com/cretz/esgopeta/gun" + "github.com/ChronosX88/go-gun/gun" ) func main() { @@ -75,7 +75,7 @@ import ( "log" "time" - "github.com/cretz/esgopeta/gun" + "github.com/ChronosX88/go-gun/gun" ) func main() { @@ -118,4 +118,4 @@ func main() { ``` Note, these are just examples and you may want to control the lifetime of the channels better. See the -[Godoc](https://godoc.org/github.com/cretz/esgopeta/gun) for more information. \ No newline at end of file +[Godoc](https://godoc.org/github.com/ChronosX88/go-gun/gun) for more information. \ No newline at end of file diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..49a5e41 --- /dev/null +++ b/go.mod @@ -0,0 +1,8 @@ +module github.com/ChronosX88/go-gun + +go 1.12 + +require ( + github.com/gorilla/websocket v1.4.1 + github.com/stretchr/testify v1.4.0 +) diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..af50a4a --- /dev/null +++ b/go.sum @@ -0,0 +1,13 @@ +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/gorilla/websocket v1.4.1 h1:q7AeDBpnBk8AogcD4DSag/Ukw/KV+YhzLj2bP5HvKCM= +github.com/gorilla/websocket v1.4.1/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= +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/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/testify v1.4.0 h1:2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk= +github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw= +gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/gun/doc.go b/gun/doc.go index 8c820b0..dd10410 100644 --- a/gun/doc.go +++ b/gun/doc.go @@ -4,7 +4,7 @@ See https://gun.eco for more information on the Gun distributed graph database. For common use, create a Gun instance via New, use Scoped to arrive at the desired field, then use Fetch to get/listen to values and/or Put to write -values. A simple example is in the README at https://github.com/cretz/esgopeta. +values. A simple example is in the README at https://github.com/ChronosX88/go-gun. WARNING: This is an early proof-of-concept alpha version. Many pieces are not implemented or don't work. diff --git a/gun/tests/context_test.go b/gun/tests/context_test.go index bb02544..e81ffc5 100644 --- a/gun/tests/context_test.go +++ b/gun/tests/context_test.go @@ -13,7 +13,7 @@ import ( "testing" "time" - "github.com/cretz/esgopeta/gun" + "github.com/ChronosX88/go-gun/gun" "github.com/stretchr/testify/require" ) diff --git a/gun/tests/gun_test.go b/gun/tests/gun_test.go index a9b9f8b..3095243 100644 --- a/gun/tests/gun_test.go +++ b/gun/tests/gun_test.go @@ -4,7 +4,7 @@ import ( "strings" "testing" - "github.com/cretz/esgopeta/gun" + "github.com/ChronosX88/go-gun/gun" ) func TestGunGetSimple(t *testing.T) {