Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added dep files and replaced import from satori/go.uuid to gofrs/uuid #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

38 changes: 38 additions & 0 deletions Gopkg.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Gopkg.toml example
#
# Refer to https://golang.github.io/dep/docs/Gopkg.toml.html
# for detailed Gopkg.toml documentation.
#
# required = ["github.com/user/thing/cmd/thing"]
# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"]
#
# [[constraint]]
# name = "github.com/user/project"
# version = "1.0.0"
#
# [[constraint]]
# name = "github.com/user/project2"
# branch = "dev"
# source = "github.com/myfork/project2"
#
# [[override]]
# name = "github.com/x/y"
# version = "2.4.0"
#
# [prune]
# non-go = false
# go-tests = true
# unused-packages = true


[[constraint]]
name = "github.com/gofrs/uuid"
version = "3.1.1"

[[constraint]]
name = "github.com/gorilla/websocket"
version = "1.4.0"

[prune]
go-tests = true
unused-packages = true
8 changes: 0 additions & 8 deletions glide.lock

This file was deleted.

6 changes: 0 additions & 6 deletions glide.yaml

This file was deleted.

6 changes: 4 additions & 2 deletions request.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ package gremlin
import (
"encoding/json"
_ "fmt"
"github.com/satori/go.uuid"

"github.com/gofrs/uuid"
)

type Request struct {
Expand Down Expand Up @@ -41,7 +42,8 @@ func GraphSONSerializer(req *Request) ([]byte, error) {
}
mimeType := []byte("application/vnd.gremlin-v2.0+json")
var mimeLen = []byte{0x21}
res := append(mimeLen, mimeType...)
var res []byte
res = append(mimeLen, mimeType...)
res = append(res, msg...)
return res, nil

Expand Down