Skip to content

Commit

Permalink
Merge pull request #112 from JoshKCarroll/go-mod
Browse files Browse the repository at this point in the history
Add go.mod and bump to major version 4
  • Loading branch information
JoshuaC215 authored Jul 3, 2021
2 parents e4568c6 + cc2377d commit 3aad90b
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 15 deletions.
2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ before_install:
- go get github.com/mattn/goveralls
- go get golang.org/x/tools/cmd/cover
- go get github.com/mitchellh/gox
- go get github.com/Masterminds/glide
- glide up
script:
- "$HOME/gopath/bin/goveralls -service=travis-ci -v"
- gox -output "bin/{{.Dir}}_{{.OS}}_{{.Arch}}" -osarch "darwin/amd64 linux/amd64 linux/arm windows/amd64" ./...
Expand Down
6 changes: 0 additions & 6 deletions glide.yaml

This file was deleted.

8 changes: 8 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module github.com/qntfy/kazaam/v4

go 1.12

require (
github.com/gofrs/uuid v3.2.0+incompatible
github.com/qntfy/jsonparser v1.0.2
)
4 changes: 4 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
github.com/gofrs/uuid v3.2.0+incompatible h1:y12jRkkFxsd7GpqdSZ+/KCs/fJbqpEXSGd4+jfEaewE=
github.com/gofrs/uuid v3.2.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM=
github.com/qntfy/jsonparser v1.0.2 h1:hko+J4L7HSaYoB2yuzinWc9MkO93zWKUmzPHJwB53OM=
github.com/qntfy/jsonparser v1.0.2/go.mod h1:F+LCdwPnFBsubQ+ugnBczIP9RWv5wSCqnUmLHPUx4ZU=
2 changes: 1 addition & 1 deletion kazaam.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"strings"

"github.com/qntfy/jsonparser"
"github.com/qntfy/kazaam/transform"
"github.com/qntfy/kazaam/v4/transform"
)

// TransformFunc defines the contract that any Transform function implementation
Expand Down
2 changes: 1 addition & 1 deletion kazaam/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"log"
"os"

"github.com/qntfy/kazaam"
"github.com/qntfy/kazaam/v4"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion kazaam_benchmarks_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package kazaam_test
import (
"testing"

"github.com/qntfy/kazaam"
"github.com/qntfy/kazaam/v4"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions kazaam_int_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"testing"

"github.com/qntfy/jsonparser"
"github.com/qntfy/kazaam"
"github.com/qntfy/kazaam/transform"
"github.com/qntfy/kazaam/v4"
"github.com/qntfy/kazaam/v4/transform"
)

const testJSONInput = `{"rating":{"example":{"value":3},"primary":{"value":3}}}`
Expand Down
2 changes: 1 addition & 1 deletion kazaam_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"testing"

"github.com/qntfy/jsonparser"
"github.com/qntfy/kazaam/transform"
"github.com/qntfy/kazaam/v4/transform"
)

func TestDefaultKazaamGetUnknownTransform(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion spec.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package kazaam
import (
"encoding/json"

"github.com/qntfy/kazaam/transform"
"github.com/qntfy/kazaam/v4/transform"
)

// Spec represents an individual spec element. It describes the name of the operation,
Expand Down

0 comments on commit 3aad90b

Please # to comment.