diff --git a/README.md b/README.md index a21e9ed..5865daa 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ go-cod is the _unofficial_ Go SDK of the Call of Duty API used in the callofduty ## Getting Started ``` -import "github.com/carlocayos/go-cod" +import "github.com/carlocayos/go-cod/v2" ``` Create a new go-cod client then use the services to access the COD APIs. diff --git a/examples/authenticated_requests/example_auth_requests.go b/examples/authenticated_requests/example_auth_requests.go index 12d22b8..df29101 100644 --- a/examples/authenticated_requests/example_auth_requests.go +++ b/examples/authenticated_requests/example_auth_requests.go @@ -3,7 +3,7 @@ package main import ( "context" "fmt" - gocod "github.com/carlocayos/go-cod" + gocod "github.com/carlocayos/go-cod/v2" "github.com/segmentio/ksuid" "log" ) diff --git a/examples/example_loadout/example_loadout.go b/examples/example_loadout/example_loadout.go index b3cf7e9..5080559 100644 --- a/examples/example_loadout/example_loadout.go +++ b/examples/example_loadout/example_loadout.go @@ -3,7 +3,7 @@ package main import ( "context" "fmt" - gocod "github.com/carlocayos/go-cod" + gocod "github.com/carlocayos/go-cod/v2" "log" ) diff --git a/examples/readme_example_auth/readme_example_auth.go b/examples/readme_example_auth/readme_example_auth.go index af3c691..92f8f78 100644 --- a/examples/readme_example_auth/readme_example_auth.go +++ b/examples/readme_example_auth/readme_example_auth.go @@ -3,7 +3,7 @@ package main import ( "context" "fmt" - go_cod "github.com/carlocayos/go-cod" + go_cod "github.com/carlocayos/go-cod/v2" "github.com/segmentio/ksuid" ) diff --git a/examples/unauthenticated_requests/example_unauth_requests.go b/examples/unauthenticated_requests/example_unauth_requests.go index c7bb795..5e12510 100644 --- a/examples/unauthenticated_requests/example_unauth_requests.go +++ b/examples/unauthenticated_requests/example_unauth_requests.go @@ -3,7 +3,7 @@ package main import ( "context" "fmt" - gocod "github.com/carlocayos/go-cod" + gocod "github.com/carlocayos/go-cod/v2" "log" ) diff --git a/go.mod b/go.mod index 69dbb83..b7911d4 100644 --- a/go.mod +++ b/go.mod @@ -1,13 +1,13 @@ -module github.com/carlocayos/go-cod +module github.com/carlocayos/go-cod/v2 -go 1.14 +go 1.16 require ( + github.com/carlocayos/go-cod v1.1.0 github.com/go-openapi/errors v0.20.0 github.com/go-openapi/runtime v0.19.28 github.com/go-openapi/strfmt v0.20.1 github.com/go-openapi/swag v0.19.15 github.com/go-openapi/validate v0.20.2 github.com/segmentio/ksuid v1.0.3 - golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect ) diff --git a/go.sum b/go.sum index 45b4c84..487f269 100644 --- a/go.sum +++ b/go.sum @@ -13,6 +13,8 @@ github.com/asaskevich/govalidator v0.0.0-20200428143746-21a406dcc535/go.mod h1:o github.com/asaskevich/govalidator v0.0.0-20200907205600-7a23bdc65eef h1:46PFijGLmAjMPwCCCo7Jf0W6f9slllCkkv7vyc1yOSg= github.com/asaskevich/govalidator v0.0.0-20200907205600-7a23bdc65eef/go.mod h1:WaHUgvxTVq04UNunO+XhnAqY/wQc+bxr74GqbsZ/Jqw= github.com/aws/aws-sdk-go v1.34.28/go.mod h1:H7NKnBqNVzoTJpGfLrQkkD+ytBA93eiDYi/+8rV9s48= +github.com/carlocayos/go-cod v1.1.0 h1:s1xZ7Qf+8CUgdFfWTvYhvQijLNX2JXkTpq+thwc/Xeg= +github.com/carlocayos/go-cod v1.1.0/go.mod h1:vuRCCg8vJt31WKtbb/OeybzRp9NAZA+7i8BFHNmO6Lk= github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= @@ -111,6 +113,7 @@ github.com/go-openapi/validate v0.19.3/go.mod h1:90Vh6jjkTn+OT1Eefm0ZixWNFjhtOH7 github.com/go-openapi/validate v0.19.10/go.mod h1:RKEZTUWDkxKQxN2jDT7ZnZi2bhZlbNMAuKvKB+IaGx8= github.com/go-openapi/validate v0.19.12/go.mod h1:Rzou8hA/CBw8donlS6WNEUQupNvUZ0waH08tGe6kAQ4= github.com/go-openapi/validate v0.19.15/go.mod h1:tbn/fdOwYHgrhPBzidZfJC2MIVvs9GA7monOmWBbeCI= +github.com/go-openapi/validate v0.20.0/go.mod h1:b60iJT+xNNLfaQJUqLI7946tYiFEOuE9E4k54HpKcJ0= github.com/go-openapi/validate v0.20.1/go.mod h1:b60iJT+xNNLfaQJUqLI7946tYiFEOuE9E4k54HpKcJ0= github.com/go-openapi/validate v0.20.2 h1:AhqDegYV3J3iQkMPJSXkvzymHKMTw0BST3RK3hTT4ts= github.com/go-openapi/validate v0.20.2/go.mod h1:e7OJoKNgd0twXZwIn0A43tHbvIcr/rZIVCbJBpTUoY0= @@ -291,7 +294,6 @@ golang.org/x/tools v0.0.0-20190531172133-b3315ee88b7d/go.mod h1:/rFqwRUd4F7ZHNgw golang.org/x/tools v0.0.0-20190614205625-5aca471b1d59/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= golang.org/x/tools v0.0.0-20190617190820-da514acc4774/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=