diff --git a/.pubnub.yml b/.pubnub.yml index 44ddcce8..4eee8cbf 100644 --- a/.pubnub.yml +++ b/.pubnub.yml @@ -1,6 +1,13 @@ --- -version: v5.0.1 +version: v5.0.2 changelog: + - + changes: + - + text: "Go mod file fix." + type: bug + date: 2021-05-26 + version: v5.0.2 - changes: - diff --git a/.travis.yml b/.travis.yml index 04666298..52cd9d8b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,4 @@ -go_import_path: github.com/pubnub/go +go_import_path: github.com/pubnub/go/v5 dist: xenial language: go os: linux diff --git a/CHANGELOG.md b/CHANGELOG.md index 6e93eea4..74b85d8d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## [v5.0.2](https://github.com/pubnub/go/releases/tag/v5.0.2) +May-26-2021 + +#### Fixed +- Go mod file fix. + ## [v5.0.1](https://github.com/pubnub/go/releases/tag/v5.0.1) May-25-2021 diff --git a/VERSION b/VERSION index 6b244dcd..a1ef0cae 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -5.0.1 +5.0.2 diff --git a/add_channel_channel_group_request.go b/add_channel_channel_group_request.go index a6badc32..23fa11e7 100644 --- a/add_channel_channel_group_request.go +++ b/add_channel_channel_group_request.go @@ -9,7 +9,7 @@ import ( "net/url" "strings" - "github.com/pubnub/go/utils" + "github.com/pubnub/go/v5/utils" ) const addChannelToChannelGroupPath = "/v1/channel-registration/sub-key/%s/channel-group/%s" diff --git a/add_channel_channel_group_request_test.go b/add_channel_channel_group_request_test.go index 2a903691..c10d2168 100644 --- a/add_channel_channel_group_request_test.go +++ b/add_channel_channel_group_request_test.go @@ -5,7 +5,7 @@ import ( "net/url" "testing" - h "github.com/pubnub/go/tests/helpers" + h "github.com/pubnub/go/v5/tests/helpers" "github.com/stretchr/testify/assert" ) diff --git a/add_channels_to_push_request.go b/add_channels_to_push_request.go index b73fcc57..08380d76 100644 --- a/add_channels_to_push_request.go +++ b/add_channels_to_push_request.go @@ -9,7 +9,7 @@ import ( "net/url" "strings" - "github.com/pubnub/go/utils" + "github.com/pubnub/go/v5/utils" ) const addChannelsToPushPath = "/v1/push/sub-key/%s/devices/%s" diff --git a/config.go b/config.go index 72097d21..97dfce9f 100644 --- a/config.go +++ b/config.go @@ -5,7 +5,7 @@ import ( "log" "sync" - "github.com/pubnub/go/utils" + "github.com/pubnub/go/v5/utils" ) const ( diff --git a/delete_channel_group_request.go b/delete_channel_group_request.go index e6a9caae..e49c1342 100644 --- a/delete_channel_group_request.go +++ b/delete_channel_group_request.go @@ -8,7 +8,7 @@ import ( "net/http" "net/url" - "github.com/pubnub/go/utils" + "github.com/pubnub/go/v5/utils" ) const deleteChannelGroupPath = "/v1/channel-registration/sub-key/%s/channel-group/%s/remove" diff --git a/delete_channel_group_request_test.go b/delete_channel_group_request_test.go index 8e45379f..702f8a02 100644 --- a/delete_channel_group_request_test.go +++ b/delete_channel_group_request_test.go @@ -5,7 +5,7 @@ import ( "net/url" "testing" - h "github.com/pubnub/go/tests/helpers" + h "github.com/pubnub/go/v5/tests/helpers" "github.com/stretchr/testify/assert" ) diff --git a/endpoints.go b/endpoints.go index b6a6a28a..394ea5ba 100644 --- a/endpoints.go +++ b/endpoints.go @@ -11,8 +11,8 @@ import ( "strings" "time" - "github.com/pubnub/go/pnerr" - "github.com/pubnub/go/utils" + "github.com/pubnub/go/v5/pnerr" + "github.com/pubnub/go/v5/utils" ) type endpointOpts interface { diff --git a/examples/cli/cli_demo.go b/examples/cli/cli_demo.go index 0f985e88..5a505eca 100644 --- a/examples/cli/cli_demo.go +++ b/examples/cli/cli_demo.go @@ -15,7 +15,7 @@ import ( "strconv" "strings" - pubnub "github.com/pubnub/go" + pubnub "github.com/pubnub/go/v5" "net/http" _ "net/http/pprof" diff --git a/examples/snippets/api/channel_groups.go b/examples/snippets/api/channel_groups.go index 242152c2..088d1802 100644 --- a/examples/snippets/api/channel_groups.go +++ b/examples/snippets/api/channel_groups.go @@ -3,7 +3,7 @@ package main import ( "fmt" - pubnub "github.com/pubnub/go" + pubnub "github.com/pubnub/go/v5" ) func main() { diff --git a/examples/snippets/api/here_now.go b/examples/snippets/api/here_now.go index 921ae9d3..cd78d730 100644 --- a/examples/snippets/api/here_now.go +++ b/examples/snippets/api/here_now.go @@ -3,7 +3,7 @@ package main import ( "fmt" - pubnub "github.com/pubnub/go" + pubnub "github.com/pubnub/go/v5" ) func main() { diff --git a/examples/snippets/api/history.go b/examples/snippets/api/history.go index 1dc3fdf7..a17a4ab3 100644 --- a/examples/snippets/api/history.go +++ b/examples/snippets/api/history.go @@ -3,7 +3,7 @@ package main import ( "fmt" - pubnub "github.com/pubnub/go" + pubnub "github.com/pubnub/go/v5" ) func main() { diff --git a/examples/snippets/api/listeners.go b/examples/snippets/api/listeners.go index 61e7b04b..fa60aaa1 100644 --- a/examples/snippets/api/listeners.go +++ b/examples/snippets/api/listeners.go @@ -1,6 +1,10 @@ package main -import pubnub "github.com/pubnub/go" +import ( + "fmt" + + pubnub "github.com/pubnub/go/v5" +) func main() { config := pubnub.NewConfig() diff --git a/examples/snippets/api/pam.go b/examples/snippets/api/pam.go index b6b15492..ad18b055 100644 --- a/examples/snippets/api/pam.go +++ b/examples/snippets/api/pam.go @@ -3,7 +3,7 @@ package main import ( "fmt" - pubnub "github.com/pubnub/go" + pubnub "github.com/pubnub/go/v5" ) func main() { diff --git a/examples/snippets/api/state.go b/examples/snippets/api/state.go index 31b9bf1e..1e23cc3c 100644 --- a/examples/snippets/api/state.go +++ b/examples/snippets/api/state.go @@ -3,7 +3,7 @@ package main import ( "fmt" - pubnub "github.com/pubnub/go" + pubnub "github.com/pubnub/go/v5" ) func main() { diff --git a/examples/snippets/api/subscribe.go b/examples/snippets/api/subscribe.go index ec778af3..ff3aa7a1 100644 --- a/examples/snippets/api/subscribe.go +++ b/examples/snippets/api/subscribe.go @@ -1,6 +1,6 @@ package main -import pubnub "github.com/pubnub/go" +import pubnub "github.com/pubnub/go/v5" func main() { config := pubnub.NewConfig() diff --git a/examples/snippets/api/subscribe_with_state.go b/examples/snippets/api/subscribe_with_state.go index 3966bc7c..83e35647 100644 --- a/examples/snippets/api/subscribe_with_state.go +++ b/examples/snippets/api/subscribe_with_state.go @@ -3,7 +3,7 @@ package main import ( "fmt" - pubnub "github.com/pubnub/go" + pubnub "github.com/pubnub/go/v5" ) func main() { diff --git a/examples/snippets/api/time.go b/examples/snippets/api/time.go index 194b3096..0b8c8153 100644 --- a/examples/snippets/api/time.go +++ b/examples/snippets/api/time.go @@ -3,7 +3,7 @@ package main import ( "fmt" - pubnub "github.com/pubnub/go" + pubnub "github.com/pubnub/go/v5" ) func main() { diff --git a/examples/snippets/design_patterns/advanced_channel_groups.go b/examples/snippets/design_patterns/advanced_channel_groups.go index 3f824fa4..539c66e5 100644 --- a/examples/snippets/design_patterns/advanced_channel_groups.go +++ b/examples/snippets/design_patterns/advanced_channel_groups.go @@ -6,7 +6,7 @@ import ( "strconv" "time" - pubnub "github.com/pubnub/go" + pubnub "github.com/pubnub/go/v5" ) var pn *pubnub.PubNub diff --git a/examples/snippets/design_patterns/message_updates_and_deletes.go b/examples/snippets/design_patterns/message_updates_and_deletes.go index 23f250d3..13646884 100644 --- a/examples/snippets/design_patterns/message_updates_and_deletes.go +++ b/examples/snippets/design_patterns/message_updates_and_deletes.go @@ -4,7 +4,7 @@ import ( "fmt" "time" - pubnub "github.com/pubnub/go" + pubnub "github.com/pubnub/go/v5" ) type Lists struct { diff --git a/examples/snippets/getting_started.go b/examples/snippets/getting_started.go index c9569e67..e6cf06e6 100644 --- a/examples/snippets/getting_started.go +++ b/examples/snippets/getting_started.go @@ -4,7 +4,7 @@ import ( "fmt" "sync" - pubnub "github.com/pubnub/go" + pubnub "github.com/pubnub/go/v5" ) var pn *pubnub.PubNub diff --git a/examples/snippets/onboarding.go b/examples/snippets/onboarding.go index 193b2e1b..2b85caf5 100644 --- a/examples/snippets/onboarding.go +++ b/examples/snippets/onboarding.go @@ -2,7 +2,8 @@ package main import ( "fmt" - pubnub "github.com/pubnub/go" + + pubnub "github.com/pubnub/go/v5" ) func main() { diff --git a/examples/snippets/tutorials/access_manager.go b/examples/snippets/tutorials/access_manager.go index 3e931d15..34c1c231 100644 --- a/examples/snippets/tutorials/access_manager.go +++ b/examples/snippets/tutorials/access_manager.go @@ -3,7 +3,7 @@ package main import ( "fmt" - pubnub "github.com/pubnub/go" + pubnub "github.com/pubnub/go/v5" ) func operationLevel() { diff --git a/examples/snippets/tutorials/presence.go b/examples/snippets/tutorials/presence.go index 84c73aca..ed55c356 100644 --- a/examples/snippets/tutorials/presence.go +++ b/examples/snippets/tutorials/presence.go @@ -3,7 +3,7 @@ package main import ( "fmt" - pubnub "github.com/pubnub/go" + pubnub "github.com/pubnub/go/v5" ) func subscribe() { diff --git a/examples/snippets/tutorials/publish_subscribe.go b/examples/snippets/tutorials/publish_subscribe.go index e3e5454b..e36f8da1 100644 --- a/examples/snippets/tutorials/publish_subscribe.go +++ b/examples/snippets/tutorials/publish_subscribe.go @@ -3,7 +3,7 @@ package main import ( "fmt" - pubnub "github.com/pubnub/go" + pubnub "github.com/pubnub/go/v5" ) var pn *pubnub.PubNub diff --git a/examples/snippets/tutorials/storage_and_playback.go b/examples/snippets/tutorials/storage_and_playback.go index d21b0145..1dc186d4 100644 --- a/examples/snippets/tutorials/storage_and_playback.go +++ b/examples/snippets/tutorials/storage_and_playback.go @@ -4,7 +4,7 @@ import ( "fmt" "strconv" - pubnub "github.com/pubnub/go" + pubnub "github.com/pubnub/go/v5" ) func getAllMessages(startTT int64) { diff --git a/examples/snippets/tutorials/stream_controller.go b/examples/snippets/tutorials/stream_controller.go index 5e03fac8..d111d28e 100644 --- a/examples/snippets/tutorials/stream_controller.go +++ b/examples/snippets/tutorials/stream_controller.go @@ -3,7 +3,7 @@ package main import ( "fmt" - pubnub "github.com/pubnub/go" + pubnub "github.com/pubnub/go/v5" ) var pn *pubnub.PubNub diff --git a/examples/snippets/tutorials/stream_filter.go b/examples/snippets/tutorials/stream_filter.go index dc6a6e98..33a7f6af 100644 --- a/examples/snippets/tutorials/stream_filter.go +++ b/examples/snippets/tutorials/stream_filter.go @@ -1,6 +1,6 @@ package main -import pubnub "github.com/pubnub/go" +import pubnub "github.com/pubnub/go/v5" func main() { config := pubnub.NewConfig() diff --git a/fetch_request.go b/fetch_request.go index c245f242..8507bdd3 100644 --- a/fetch_request.go +++ b/fetch_request.go @@ -10,8 +10,8 @@ import ( "reflect" "strconv" - "github.com/pubnub/go/pnerr" - "github.com/pubnub/go/utils" + "github.com/pubnub/go/v5/pnerr" + "github.com/pubnub/go/v5/utils" "net/http" "net/url" diff --git a/fetch_request_test.go b/fetch_request_test.go index e3f8f369..07cca2d8 100644 --- a/fetch_request_test.go +++ b/fetch_request_test.go @@ -7,7 +7,7 @@ import ( "strconv" "testing" - h "github.com/pubnub/go/tests/helpers" + h "github.com/pubnub/go/v5/tests/helpers" "github.com/stretchr/testify/assert" ) diff --git a/files_delete_file.go b/files_delete_file.go index e437c4fa..2f83374b 100644 --- a/files_delete_file.go +++ b/files_delete_file.go @@ -10,7 +10,7 @@ import ( "net/http" "net/url" - "github.com/pubnub/go/pnerr" + "github.com/pubnub/go/v5/pnerr" ) var emptyDeleteFileResponse *PNDeleteFileResponse diff --git a/files_delete_file_test.go b/files_delete_file_test.go index 087a8dc2..42259416 100644 --- a/files_delete_file_test.go +++ b/files_delete_file_test.go @@ -4,7 +4,7 @@ import ( "fmt" "testing" - h "github.com/pubnub/go/tests/helpers" + h "github.com/pubnub/go/v5/tests/helpers" "github.com/stretchr/testify/assert" ) diff --git a/files_download_file.go b/files_download_file.go index b5f845f8..37560696 100644 --- a/files_download_file.go +++ b/files_download_file.go @@ -10,7 +10,7 @@ import ( "net/url" "strconv" - "github.com/pubnub/go/utils" + "github.com/pubnub/go/v5/utils" ) var emptyDownloadFileResponse *PNDownloadFileResponse diff --git a/files_get_file_url_test.go b/files_get_file_url_test.go index d07655d2..42cf26d7 100644 --- a/files_get_file_url_test.go +++ b/files_get_file_url_test.go @@ -4,7 +4,7 @@ import ( "fmt" "testing" - h "github.com/pubnub/go/tests/helpers" + h "github.com/pubnub/go/v5/tests/helpers" "github.com/stretchr/testify/assert" ) diff --git a/files_list_files.go b/files_list_files.go index 561dab0b..c2b80a74 100644 --- a/files_list_files.go +++ b/files_list_files.go @@ -11,7 +11,7 @@ import ( "net/url" "strconv" - "github.com/pubnub/go/pnerr" + "github.com/pubnub/go/v5/pnerr" ) var emptyListFilesResponse *PNListFilesResponse diff --git a/files_list_files_test.go b/files_list_files_test.go index 3b5c9086..eb69909e 100644 --- a/files_list_files_test.go +++ b/files_list_files_test.go @@ -4,7 +4,7 @@ import ( "fmt" "testing" - h "github.com/pubnub/go/tests/helpers" + h "github.com/pubnub/go/v5/tests/helpers" "github.com/stretchr/testify/assert" ) diff --git a/files_send_file.go b/files_send_file.go index e9dc95b9..181bafcd 100644 --- a/files_send_file.go +++ b/files_send_file.go @@ -11,7 +11,7 @@ import ( "net/url" "os" - "github.com/pubnub/go/pnerr" + "github.com/pubnub/go/v5/pnerr" ) var emptySendFileResponse *PNSendFileResponse diff --git a/files_send_file_test.go b/files_send_file_test.go index 951e1e38..995330b3 100644 --- a/files_send_file_test.go +++ b/files_send_file_test.go @@ -4,7 +4,7 @@ import ( "fmt" "testing" - h "github.com/pubnub/go/tests/helpers" + h "github.com/pubnub/go/v5/tests/helpers" "github.com/stretchr/testify/assert" ) diff --git a/files_send_file_to_s3.go b/files_send_file_to_s3.go index b391f421..d4fce613 100644 --- a/files_send_file_to_s3.go +++ b/files_send_file_to_s3.go @@ -10,8 +10,8 @@ import ( "net/url" "os" - "github.com/pubnub/go/pnerr" - "github.com/pubnub/go/utils" + "github.com/pubnub/go/v5/pnerr" + "github.com/pubnub/go/v5/utils" ) var emptySendFileToS3Response *PNSendFileToS3Response diff --git a/fire_request.go b/fire_request.go index a2d007e1..4595aa87 100644 --- a/fire_request.go +++ b/fire_request.go @@ -7,8 +7,8 @@ import ( "mime/multipart" "strconv" - "github.com/pubnub/go/pnerr" - "github.com/pubnub/go/utils" + "github.com/pubnub/go/v5/pnerr" + "github.com/pubnub/go/v5/utils" "net/http" "net/url" diff --git a/fire_request_test.go b/fire_request_test.go index 3ca7caa9..bff16453 100644 --- a/fire_request_test.go +++ b/fire_request_test.go @@ -5,7 +5,7 @@ import ( "net/url" "testing" - h "github.com/pubnub/go/tests/helpers" + h "github.com/pubnub/go/v5/tests/helpers" "github.com/stretchr/testify/assert" ) diff --git a/get_state_request.go b/get_state_request.go index f0f6a0a7..e45f3081 100644 --- a/get_state_request.go +++ b/get_state_request.go @@ -11,8 +11,8 @@ import ( "net/url" "strings" - "github.com/pubnub/go/pnerr" - "github.com/pubnub/go/utils" + "github.com/pubnub/go/v5/pnerr" + "github.com/pubnub/go/v5/utils" ) const getStatePath = "/v2/presence/sub-key/%s/channel/%s/uuid/%s" diff --git a/get_state_request_test.go b/get_state_request_test.go index b3504ae9..a1c2b58f 100644 --- a/get_state_request_test.go +++ b/get_state_request_test.go @@ -5,7 +5,7 @@ import ( "net/url" "testing" - h "github.com/pubnub/go/tests/helpers" + h "github.com/pubnub/go/v5/tests/helpers" "github.com/stretchr/testify/assert" ) diff --git a/go.mod b/go.mod index 161b472e..b140f64d 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module pubnub.com/go/v5 +module github.com/pubnub/go/v5 go 1.16 @@ -7,9 +7,8 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/google/uuid v1.1.1 github.com/pmezard/go-difflib v1.0.0 // indirect - github.com/pubnub/go v4.10.0+incompatible github.com/stretchr/testify v1.2.2 github.com/wadey/gocovmerge v0.0.0-20160331181800-b5bfa59ec0ad // indirect golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4 - golang.org/x/tools v0.1.1 // indirect + golang.org/x/tools v0.1.2 // indirect ) diff --git a/go.sum b/go.sum index 9ba0896f..cfaa9c6f 100644 --- a/go.sum +++ b/go.sum @@ -6,8 +6,6 @@ github.com/google/uuid v1.1.1 h1:Gkbcsh/GbpXz7lPftLA3P6TYMwjCLYm83jiFQZF/3gY= github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= 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/pubnub/go v4.10.0+incompatible h1:ZFkbVwcAGTlGEIAdCuXL4nyK7YRYtMZ+gYhGvlGQUpw= -github.com/pubnub/go v4.10.0+incompatible/go.mod h1:lTAiOs5xrgym8YNzTSleYPEJPDvuLr5wDRkGOYqqJqU= github.com/stretchr/testify v1.2.2 h1:bSDNvY7ZPG5RlJ8otE/7V6gMiyenm9RtJ7IUVIAoJ1w= github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/wadey/gocovmerge v0.0.0-20160331181800-b5bfa59ec0ad h1:W0LEBv82YCGEtcmPA3uNZBI33/qF//HAAs3MawDjRa0= @@ -37,6 +35,8 @@ golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGm golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.1.1 h1:wGiQel/hW0NnEkJUk8lbzkX2gFJU6PFxf1v5OlCfuOs= golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= +golang.org/x/tools v0.1.2 h1:kRBLX7v7Af8W7Gdbbc908OJcdgtK8bOz9Uaj8/F1ACA= +golang.org/x/tools v0.1.2/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= diff --git a/grant_request.go b/grant_request.go index 60d867f5..5bc382d6 100644 --- a/grant_request.go +++ b/grant_request.go @@ -13,7 +13,7 @@ import ( "strings" "time" - "github.com/pubnub/go/pnerr" + "github.com/pubnub/go/v5/pnerr" ) const grantPath = "/v2/auth/grant/sub-key/%s" diff --git a/grant_request_test.go b/grant_request_test.go index c4414eb9..0e58e522 100644 --- a/grant_request_test.go +++ b/grant_request_test.go @@ -5,7 +5,7 @@ import ( "net/url" "testing" - h "github.com/pubnub/go/tests/helpers" + h "github.com/pubnub/go/v5/tests/helpers" "github.com/stretchr/testify/assert" ) diff --git a/grant_token_request.go b/grant_token_request.go index 8d098f54..aa45c294 100644 --- a/grant_token_request.go +++ b/grant_token_request.go @@ -10,7 +10,7 @@ import ( "net/http" "net/url" - "github.com/pubnub/go/pnerr" + "github.com/pubnub/go/v5/pnerr" ) const grantTokenPath = "/v3/pam/%s/grant" diff --git a/grant_token_request_test.go b/grant_token_request_test.go index cfaae17b..74a5f045 100644 --- a/grant_token_request_test.go +++ b/grant_token_request_test.go @@ -4,7 +4,7 @@ import ( "fmt" "testing" - h "github.com/pubnub/go/tests/helpers" + h "github.com/pubnub/go/v5/tests/helpers" "github.com/stretchr/testify/assert" ) diff --git a/heartbeat_request.go b/heartbeat_request.go index 71c18d74..9e4a26cc 100644 --- a/heartbeat_request.go +++ b/heartbeat_request.go @@ -11,7 +11,7 @@ import ( "strconv" "strings" - "github.com/pubnub/go/utils" + "github.com/pubnub/go/v5/utils" ) const heartbeatPath = "/v2/presence/sub-key/%s/channel/%s/heartbeat" diff --git a/heartbeat_request_test.go b/heartbeat_request_test.go index 1cb8a544..34270c36 100644 --- a/heartbeat_request_test.go +++ b/heartbeat_request_test.go @@ -6,7 +6,7 @@ import ( "strings" "testing" - h "github.com/pubnub/go/tests/helpers" + h "github.com/pubnub/go/v5/tests/helpers" "github.com/stretchr/testify/assert" ) diff --git a/here_now_request.go b/here_now_request.go index ffeb7c5c..e6ab2960 100644 --- a/here_now_request.go +++ b/here_now_request.go @@ -11,7 +11,7 @@ import ( "net/url" "strings" - "github.com/pubnub/go/pnerr" + "github.com/pubnub/go/v5/pnerr" ) var hereNowPath = "/v2/presence/sub_key/%s/channel/%s" diff --git a/here_now_request_test.go b/here_now_request_test.go index 29c03ec2..1a6439cd 100644 --- a/here_now_request_test.go +++ b/here_now_request_test.go @@ -4,7 +4,7 @@ import ( "net/url" "testing" - h "github.com/pubnub/go/tests/helpers" + h "github.com/pubnub/go/v5/tests/helpers" "github.com/stretchr/testify/assert" ) diff --git a/history_delete_request.go b/history_delete_request.go index e83e5fb9..6c39fc37 100644 --- a/history_delete_request.go +++ b/history_delete_request.go @@ -9,7 +9,7 @@ import ( "net/url" "strconv" - "github.com/pubnub/go/utils" + "github.com/pubnub/go/v5/utils" ) const historyDeletePath = "/v3/history/sub-key/%s/channel/%s" diff --git a/history_delete_request_test.go b/history_delete_request_test.go index 8b69a979..66655adb 100644 --- a/history_delete_request_test.go +++ b/history_delete_request_test.go @@ -5,7 +5,7 @@ import ( "net/url" "testing" - h "github.com/pubnub/go/tests/helpers" + h "github.com/pubnub/go/v5/tests/helpers" "github.com/stretchr/testify/assert" ) diff --git a/history_request.go b/history_request.go index 3da374e5..77ac76de 100644 --- a/history_request.go +++ b/history_request.go @@ -9,8 +9,8 @@ import ( "mime/multipart" "strconv" - "github.com/pubnub/go/pnerr" - "github.com/pubnub/go/utils" + "github.com/pubnub/go/v5/pnerr" + "github.com/pubnub/go/v5/utils" "net/http" "net/url" diff --git a/history_request_test.go b/history_request_test.go index 8977efb3..7ba7a7ec 100644 --- a/history_request_test.go +++ b/history_request_test.go @@ -7,7 +7,7 @@ import ( "strconv" "testing" - h "github.com/pubnub/go/tests/helpers" + h "github.com/pubnub/go/v5/tests/helpers" "github.com/stretchr/testify/assert" ) diff --git a/leave_request.go b/leave_request.go index 90a1be57..caa8fffe 100644 --- a/leave_request.go +++ b/leave_request.go @@ -8,7 +8,7 @@ import ( "net/http" "net/url" - "github.com/pubnub/go/utils" + "github.com/pubnub/go/v5/utils" ) const leavePath = "/v2/presence/sub-key/%s/channel/%s/leave" diff --git a/leave_request_test.go b/leave_request_test.go index 49491b1e..063b1420 100644 --- a/leave_request_test.go +++ b/leave_request_test.go @@ -5,7 +5,7 @@ import ( "net/url" "testing" - h "github.com/pubnub/go/tests/helpers" + h "github.com/pubnub/go/v5/tests/helpers" "github.com/stretchr/testify/assert" ) diff --git a/list_all_channel_group_request.go b/list_all_channel_group_request.go index dbfd97f2..23ae33f1 100644 --- a/list_all_channel_group_request.go +++ b/list_all_channel_group_request.go @@ -10,8 +10,8 @@ import ( "net/http" "net/url" - "github.com/pubnub/go/pnerr" - "github.com/pubnub/go/utils" + "github.com/pubnub/go/v5/pnerr" + "github.com/pubnub/go/v5/utils" ) const allChannelGroupPath = "/v1/channel-registration/sub-key/%s/channel-group/%s" diff --git a/list_all_channel_group_request_test.go b/list_all_channel_group_request_test.go index 4c257af6..c3d8d7eb 100644 --- a/list_all_channel_group_request_test.go +++ b/list_all_channel_group_request_test.go @@ -5,7 +5,7 @@ import ( "net/url" "testing" - h "github.com/pubnub/go/tests/helpers" + h "github.com/pubnub/go/v5/tests/helpers" "github.com/stretchr/testify/assert" ) diff --git a/list_push_provisions_request.go b/list_push_provisions_request.go index 75f07d51..0f6213c9 100644 --- a/list_push_provisions_request.go +++ b/list_push_provisions_request.go @@ -10,8 +10,8 @@ import ( "net/http" "net/url" - "github.com/pubnub/go/pnerr" - "github.com/pubnub/go/utils" + "github.com/pubnub/go/v5/pnerr" + "github.com/pubnub/go/v5/utils" ) const listChannelsOfPushPath = "/v1/push/sub-key/%s/devices/%s" diff --git a/message_actions_add.go b/message_actions_add.go index 9a48b4e7..4aeb395b 100644 --- a/message_actions_add.go +++ b/message_actions_add.go @@ -10,7 +10,7 @@ import ( "net/http" "net/url" - "github.com/pubnub/go/pnerr" + "github.com/pubnub/go/v5/pnerr" ) var emptyPNAddMessageActionsResponse *PNAddMessageActionsResponse diff --git a/message_actions_add_test.go b/message_actions_add_test.go index 68a17173..e00da703 100644 --- a/message_actions_add_test.go +++ b/message_actions_add_test.go @@ -4,7 +4,7 @@ import ( "fmt" "testing" - h "github.com/pubnub/go/tests/helpers" + h "github.com/pubnub/go/v5/tests/helpers" "github.com/stretchr/testify/assert" ) diff --git a/message_actions_get.go b/message_actions_get.go index 835ac71c..9e248f56 100644 --- a/message_actions_get.go +++ b/message_actions_get.go @@ -11,7 +11,7 @@ import ( "net/url" "strconv" - "github.com/pubnub/go/pnerr" + "github.com/pubnub/go/v5/pnerr" ) var emptyPNGetMessageActionsResponse *PNGetMessageActionsResponse diff --git a/message_actions_get_test.go b/message_actions_get_test.go index 5cd76d62..427818fb 100644 --- a/message_actions_get_test.go +++ b/message_actions_get_test.go @@ -5,7 +5,7 @@ import ( "strconv" "testing" - h "github.com/pubnub/go/tests/helpers" + h "github.com/pubnub/go/v5/tests/helpers" "github.com/stretchr/testify/assert" ) diff --git a/message_actions_remove.go b/message_actions_remove.go index d9fdbe57..bcaf8285 100644 --- a/message_actions_remove.go +++ b/message_actions_remove.go @@ -10,7 +10,7 @@ import ( "net/http" "net/url" - "github.com/pubnub/go/pnerr" + "github.com/pubnub/go/v5/pnerr" ) var emptyPNRemoveMessageActionsResponse *PNRemoveMessageActionsResponse diff --git a/message_actions_remove_test.go b/message_actions_remove_test.go index 01835f3f..4ff1752e 100644 --- a/message_actions_remove_test.go +++ b/message_actions_remove_test.go @@ -4,7 +4,7 @@ import ( "fmt" "testing" - h "github.com/pubnub/go/tests/helpers" + h "github.com/pubnub/go/v5/tests/helpers" "github.com/stretchr/testify/assert" ) diff --git a/message_counts_request.go b/message_counts_request.go index c7529fb3..dee31cf1 100644 --- a/message_counts_request.go +++ b/message_counts_request.go @@ -12,8 +12,8 @@ import ( "strconv" "strings" - "github.com/pubnub/go/pnerr" - "github.com/pubnub/go/utils" + "github.com/pubnub/go/v5/pnerr" + "github.com/pubnub/go/v5/utils" "net/http" "net/url" diff --git a/message_counts_request_test.go b/message_counts_request_test.go index d7a5654c..c471e773 100644 --- a/message_counts_request_test.go +++ b/message_counts_request_test.go @@ -4,7 +4,7 @@ import ( "fmt" "testing" - h "github.com/pubnub/go/tests/helpers" + h "github.com/pubnub/go/v5/tests/helpers" "github.com/stretchr/testify/assert" ) diff --git a/objects_get_all_channel_metadata.go b/objects_get_all_channel_metadata.go index 50dfbbd4..f5307c09 100644 --- a/objects_get_all_channel_metadata.go +++ b/objects_get_all_channel_metadata.go @@ -11,7 +11,7 @@ import ( "net/url" "strconv" - "github.com/pubnub/go/pnerr" + "github.com/pubnub/go/v5/pnerr" ) var emptyGetAllChannelMetadataResponse *PNGetAllChannelMetadataResponse diff --git a/objects_get_all_channel_metadata_test.go b/objects_get_all_channel_metadata_test.go index e69f0cac..2e7b186d 100644 --- a/objects_get_all_channel_metadata_test.go +++ b/objects_get_all_channel_metadata_test.go @@ -6,8 +6,8 @@ import ( "strconv" "testing" - h "github.com/pubnub/go/tests/helpers" - "github.com/pubnub/go/utils" + h "github.com/pubnub/go/v5/tests/helpers" + "github.com/pubnub/go/v5/utils" "github.com/stretchr/testify/assert" ) diff --git a/objects_get_all_uuid_metadata.go b/objects_get_all_uuid_metadata.go index eb445af3..69252cb3 100644 --- a/objects_get_all_uuid_metadata.go +++ b/objects_get_all_uuid_metadata.go @@ -11,7 +11,7 @@ import ( "net/url" "strconv" - "github.com/pubnub/go/pnerr" + "github.com/pubnub/go/v5/pnerr" ) var emptyPNGetAllUUIDMetadataResponse *PNGetAllUUIDMetadataResponse diff --git a/objects_get_all_uuid_metadata_test.go b/objects_get_all_uuid_metadata_test.go index fab9e5c8..7e407345 100644 --- a/objects_get_all_uuid_metadata_test.go +++ b/objects_get_all_uuid_metadata_test.go @@ -6,8 +6,8 @@ import ( "strconv" "testing" - h "github.com/pubnub/go/tests/helpers" - "github.com/pubnub/go/utils" + h "github.com/pubnub/go/v5/tests/helpers" + "github.com/pubnub/go/v5/utils" "github.com/stretchr/testify/assert" ) diff --git a/objects_get_channel_members_v2.go b/objects_get_channel_members_v2.go index a1bd236d..fe5f2883 100644 --- a/objects_get_channel_members_v2.go +++ b/objects_get_channel_members_v2.go @@ -11,7 +11,7 @@ import ( "net/url" "strconv" - "github.com/pubnub/go/pnerr" + "github.com/pubnub/go/v5/pnerr" ) var emptyGetChannelMembersResponse *PNGetChannelMembersResponse diff --git a/objects_get_channel_members_v2_test.go b/objects_get_channel_members_v2_test.go index e9722e69..7b0a07bb 100644 --- a/objects_get_channel_members_v2_test.go +++ b/objects_get_channel_members_v2_test.go @@ -6,8 +6,8 @@ import ( "strconv" "testing" - h "github.com/pubnub/go/tests/helpers" - "github.com/pubnub/go/utils" + h "github.com/pubnub/go/v5/tests/helpers" + "github.com/pubnub/go/v5/utils" "github.com/stretchr/testify/assert" ) diff --git a/objects_get_channel_metadata.go b/objects_get_channel_metadata.go index f404a087..75fc16bc 100644 --- a/objects_get_channel_metadata.go +++ b/objects_get_channel_metadata.go @@ -10,7 +10,7 @@ import ( "net/http" "net/url" - "github.com/pubnub/go/pnerr" + "github.com/pubnub/go/v5/pnerr" ) var emptyPNGetChannelMetadataResponse *PNGetChannelMetadataResponse diff --git a/objects_get_channel_metadata_test.go b/objects_get_channel_metadata_test.go index 1c013f88..bcaedd14 100644 --- a/objects_get_channel_metadata_test.go +++ b/objects_get_channel_metadata_test.go @@ -4,8 +4,8 @@ import ( "fmt" "testing" - h "github.com/pubnub/go/tests/helpers" - "github.com/pubnub/go/utils" + h "github.com/pubnub/go/v5/tests/helpers" + "github.com/pubnub/go/v5/utils" "github.com/stretchr/testify/assert" ) diff --git a/objects_get_memberships_v2.go b/objects_get_memberships_v2.go index a2e994fa..a2d52464 100644 --- a/objects_get_memberships_v2.go +++ b/objects_get_memberships_v2.go @@ -11,7 +11,7 @@ import ( "net/url" "strconv" - "github.com/pubnub/go/pnerr" + "github.com/pubnub/go/v5/pnerr" ) var emptyGetMembershipsResponse *PNGetMembershipsResponse diff --git a/objects_get_memberships_v2_test.go b/objects_get_memberships_v2_test.go index d9ceb3d7..77e8ea22 100644 --- a/objects_get_memberships_v2_test.go +++ b/objects_get_memberships_v2_test.go @@ -6,8 +6,8 @@ import ( "strconv" "testing" - h "github.com/pubnub/go/tests/helpers" - "github.com/pubnub/go/utils" + h "github.com/pubnub/go/v5/tests/helpers" + "github.com/pubnub/go/v5/utils" "github.com/stretchr/testify/assert" ) diff --git a/objects_get_uuid_metadata.go b/objects_get_uuid_metadata.go index f82f3dd4..9dec17fa 100644 --- a/objects_get_uuid_metadata.go +++ b/objects_get_uuid_metadata.go @@ -10,7 +10,7 @@ import ( "net/http" "net/url" - "github.com/pubnub/go/pnerr" + "github.com/pubnub/go/v5/pnerr" ) var emptyPNGetUUIDMetadataResponse *PNGetUUIDMetadataResponse diff --git a/objects_get_uuid_metadata_test.go b/objects_get_uuid_metadata_test.go index 758af7cb..ebae478e 100644 --- a/objects_get_uuid_metadata_test.go +++ b/objects_get_uuid_metadata_test.go @@ -4,8 +4,8 @@ import ( "fmt" "testing" - h "github.com/pubnub/go/tests/helpers" - "github.com/pubnub/go/utils" + h "github.com/pubnub/go/v5/tests/helpers" + "github.com/pubnub/go/v5/utils" "github.com/stretchr/testify/assert" ) diff --git a/objects_manage_channel_members_v2.go b/objects_manage_channel_members_v2.go index 865d00e5..717d0b07 100644 --- a/objects_manage_channel_members_v2.go +++ b/objects_manage_channel_members_v2.go @@ -11,7 +11,7 @@ import ( "net/url" "strconv" - "github.com/pubnub/go/pnerr" + "github.com/pubnub/go/v5/pnerr" ) var emptyManageMembersResponse *PNManageMembersResponse diff --git a/objects_manage_channel_members_v2_test.go b/objects_manage_channel_members_v2_test.go index ce4ba3c6..8de1b8f5 100644 --- a/objects_manage_channel_members_v2_test.go +++ b/objects_manage_channel_members_v2_test.go @@ -6,8 +6,8 @@ import ( "strconv" "testing" - h "github.com/pubnub/go/tests/helpers" - "github.com/pubnub/go/utils" + h "github.com/pubnub/go/v5/tests/helpers" + "github.com/pubnub/go/v5/utils" "github.com/stretchr/testify/assert" ) diff --git a/objects_manage_memberships_v2.go b/objects_manage_memberships_v2.go index 3a27eb1e..56b6fb24 100644 --- a/objects_manage_memberships_v2.go +++ b/objects_manage_memberships_v2.go @@ -11,7 +11,7 @@ import ( "net/url" "strconv" - "github.com/pubnub/go/pnerr" + "github.com/pubnub/go/v5/pnerr" ) var emptyManageMembershipsResponse *PNManageMembershipsResponse diff --git a/objects_manage_memberships_v2_test.go b/objects_manage_memberships_v2_test.go index e8669fcf..f3c4e0b0 100644 --- a/objects_manage_memberships_v2_test.go +++ b/objects_manage_memberships_v2_test.go @@ -6,8 +6,8 @@ import ( "strconv" "testing" - h "github.com/pubnub/go/tests/helpers" - "github.com/pubnub/go/utils" + h "github.com/pubnub/go/v5/tests/helpers" + "github.com/pubnub/go/v5/utils" "github.com/stretchr/testify/assert" ) diff --git a/objects_remove_channel_members.go b/objects_remove_channel_members.go index 5bb543ed..68d6f577 100644 --- a/objects_remove_channel_members.go +++ b/objects_remove_channel_members.go @@ -11,7 +11,7 @@ import ( "net/url" "strconv" - "github.com/pubnub/go/pnerr" + "github.com/pubnub/go/v5/pnerr" ) var emptyRemoveChannelMembersResponse *PNRemoveChannelMembersResponse diff --git a/objects_remove_channel_members_test.go b/objects_remove_channel_members_test.go index 19db9eca..60281347 100644 --- a/objects_remove_channel_members_test.go +++ b/objects_remove_channel_members_test.go @@ -6,8 +6,8 @@ import ( "strconv" "testing" - h "github.com/pubnub/go/tests/helpers" - "github.com/pubnub/go/utils" + h "github.com/pubnub/go/v5/tests/helpers" + "github.com/pubnub/go/v5/utils" "github.com/stretchr/testify/assert" ) diff --git a/objects_remove_channel_metadata.go b/objects_remove_channel_metadata.go index 4e6be345..d4ac8abc 100644 --- a/objects_remove_channel_metadata.go +++ b/objects_remove_channel_metadata.go @@ -10,7 +10,7 @@ import ( "net/http" "net/url" - "github.com/pubnub/go/pnerr" + "github.com/pubnub/go/v5/pnerr" ) var emptyPNRemoveChannelMetadataResponse *PNRemoveChannelMetadataResponse diff --git a/objects_remove_channel_metadata_test.go b/objects_remove_channel_metadata_test.go index 19c63f82..0c2e02c1 100644 --- a/objects_remove_channel_metadata_test.go +++ b/objects_remove_channel_metadata_test.go @@ -4,7 +4,7 @@ import ( "fmt" "testing" - h "github.com/pubnub/go/tests/helpers" + h "github.com/pubnub/go/v5/tests/helpers" "github.com/stretchr/testify/assert" ) diff --git a/objects_remove_memberships.go b/objects_remove_memberships.go index b4a5de58..65ec9207 100644 --- a/objects_remove_memberships.go +++ b/objects_remove_memberships.go @@ -11,7 +11,7 @@ import ( "net/url" "strconv" - "github.com/pubnub/go/pnerr" + "github.com/pubnub/go/v5/pnerr" ) var emptyRemoveMembershipsResponse *PNRemoveMembershipsResponse diff --git a/objects_remove_memberships_test.go b/objects_remove_memberships_test.go index 759e2ad2..08618360 100644 --- a/objects_remove_memberships_test.go +++ b/objects_remove_memberships_test.go @@ -6,8 +6,8 @@ import ( "strconv" "testing" - h "github.com/pubnub/go/tests/helpers" - "github.com/pubnub/go/utils" + h "github.com/pubnub/go/v5/tests/helpers" + "github.com/pubnub/go/v5/utils" "github.com/stretchr/testify/assert" ) diff --git a/objects_remove_uuid_metadata.go b/objects_remove_uuid_metadata.go index 23ba14e6..6f839bb0 100644 --- a/objects_remove_uuid_metadata.go +++ b/objects_remove_uuid_metadata.go @@ -10,7 +10,7 @@ import ( "net/http" "net/url" - "github.com/pubnub/go/pnerr" + "github.com/pubnub/go/v5/pnerr" ) var emptyPNRemoveUUIDMetadataResponse *PNRemoveUUIDMetadataResponse diff --git a/objects_remove_uuid_metadata_test.go b/objects_remove_uuid_metadata_test.go index bc10cb6d..bc86e0c1 100644 --- a/objects_remove_uuid_metadata_test.go +++ b/objects_remove_uuid_metadata_test.go @@ -4,7 +4,7 @@ import ( "fmt" "testing" - h "github.com/pubnub/go/tests/helpers" + h "github.com/pubnub/go/v5/tests/helpers" "github.com/stretchr/testify/assert" ) diff --git a/objects_set_channel_members.go b/objects_set_channel_members.go index 1fb91232..7c9ff57a 100644 --- a/objects_set_channel_members.go +++ b/objects_set_channel_members.go @@ -11,7 +11,7 @@ import ( "net/url" "strconv" - "github.com/pubnub/go/pnerr" + "github.com/pubnub/go/v5/pnerr" ) var emptySetChannelMembersResponse *PNSetChannelMembersResponse diff --git a/objects_set_channel_members_test.go b/objects_set_channel_members_test.go index 2e09f0bc..befcbdc0 100644 --- a/objects_set_channel_members_test.go +++ b/objects_set_channel_members_test.go @@ -6,8 +6,8 @@ import ( "strconv" "testing" - h "github.com/pubnub/go/tests/helpers" - "github.com/pubnub/go/utils" + h "github.com/pubnub/go/v5/tests/helpers" + "github.com/pubnub/go/v5/utils" "github.com/stretchr/testify/assert" ) diff --git a/objects_set_channel_metadata.go b/objects_set_channel_metadata.go index 14f63bf0..cfeda484 100644 --- a/objects_set_channel_metadata.go +++ b/objects_set_channel_metadata.go @@ -10,7 +10,7 @@ import ( "net/http" "net/url" - "github.com/pubnub/go/pnerr" + "github.com/pubnub/go/v5/pnerr" ) var emptyPNSetChannelMetadataResponse *PNSetChannelMetadataResponse diff --git a/objects_set_channel_metadata_test.go b/objects_set_channel_metadata_test.go index 5d251c5b..56b0943d 100644 --- a/objects_set_channel_metadata_test.go +++ b/objects_set_channel_metadata_test.go @@ -4,8 +4,8 @@ import ( "fmt" "testing" - h "github.com/pubnub/go/tests/helpers" - "github.com/pubnub/go/utils" + h "github.com/pubnub/go/v5/tests/helpers" + "github.com/pubnub/go/v5/utils" "github.com/stretchr/testify/assert" ) diff --git a/objects_set_memberships.go b/objects_set_memberships.go index 2126d2d6..c1a65b7a 100644 --- a/objects_set_memberships.go +++ b/objects_set_memberships.go @@ -11,7 +11,7 @@ import ( "net/url" "strconv" - "github.com/pubnub/go/pnerr" + "github.com/pubnub/go/v5/pnerr" ) var emptySetMembershipsResponse *PNSetMembershipsResponse diff --git a/objects_set_memberships_test.go b/objects_set_memberships_test.go index 3d769516..460db0d9 100644 --- a/objects_set_memberships_test.go +++ b/objects_set_memberships_test.go @@ -6,8 +6,8 @@ import ( "strconv" "testing" - h "github.com/pubnub/go/tests/helpers" - "github.com/pubnub/go/utils" + h "github.com/pubnub/go/v5/tests/helpers" + "github.com/pubnub/go/v5/utils" "github.com/stretchr/testify/assert" ) diff --git a/objects_set_uuid_metadata.go b/objects_set_uuid_metadata.go index 1a4ca88d..97023e17 100644 --- a/objects_set_uuid_metadata.go +++ b/objects_set_uuid_metadata.go @@ -10,7 +10,7 @@ import ( "net/http" "net/url" - "github.com/pubnub/go/pnerr" + "github.com/pubnub/go/v5/pnerr" ) var emptyPNSetUUIDMetadataResponse *PNSetUUIDMetadataResponse diff --git a/objects_set_uuid_metadata_test.go b/objects_set_uuid_metadata_test.go index c1fc0df4..ff227aa2 100644 --- a/objects_set_uuid_metadata_test.go +++ b/objects_set_uuid_metadata_test.go @@ -4,8 +4,8 @@ import ( "fmt" "testing" - h "github.com/pubnub/go/tests/helpers" - "github.com/pubnub/go/utils" + h "github.com/pubnub/go/v5/tests/helpers" + "github.com/pubnub/go/v5/utils" "github.com/stretchr/testify/assert" ) diff --git a/publish_file_message.go b/publish_file_message.go index a473bb19..de636e87 100644 --- a/publish_file_message.go +++ b/publish_file_message.go @@ -8,8 +8,8 @@ import ( "io/ioutil" "mime/multipart" - "github.com/pubnub/go/pnerr" - "github.com/pubnub/go/utils" + "github.com/pubnub/go/v5/pnerr" + "github.com/pubnub/go/v5/utils" "net/http" "net/url" diff --git a/publish_file_message_test.go b/publish_file_message_test.go index 687085bf..35e23bfb 100644 --- a/publish_file_message_test.go +++ b/publish_file_message_test.go @@ -4,7 +4,7 @@ import ( "fmt" "testing" - h "github.com/pubnub/go/tests/helpers" + h "github.com/pubnub/go/v5/tests/helpers" "github.com/stretchr/testify/assert" ) diff --git a/publish_request.go b/publish_request.go index a273acc5..5115a4a8 100644 --- a/publish_request.go +++ b/publish_request.go @@ -10,8 +10,8 @@ import ( "reflect" "strconv" - "github.com/pubnub/go/pnerr" - "github.com/pubnub/go/utils" + "github.com/pubnub/go/v5/pnerr" + "github.com/pubnub/go/v5/utils" "net/http" "net/url" diff --git a/publish_request_test.go b/publish_request_test.go index 001a213f..73f04b07 100644 --- a/publish_request_test.go +++ b/publish_request_test.go @@ -5,7 +5,7 @@ import ( "net/url" "testing" - h "github.com/pubnub/go/tests/helpers" + h "github.com/pubnub/go/v5/tests/helpers" "github.com/stretchr/testify/assert" ) diff --git a/pubnub.go b/pubnub.go index 14ca3722..91f5706d 100644 --- a/pubnub.go +++ b/pubnub.go @@ -12,7 +12,7 @@ import ( // Default constants const ( // Version :the version of the SDK - Version = "5.0.1" + Version = "5.0.2" // MaxSequence for publish messages MaxSequence = 65535 ) diff --git a/reconnection_manager_test.go b/reconnection_manager_test.go index ceff33db..70ebec55 100644 --- a/reconnection_manager_test.go +++ b/reconnection_manager_test.go @@ -1,10 +1,11 @@ package pubnub import ( - "github.com/pubnub/go/tests/stubs" - "github.com/stretchr/testify/assert" "testing" "time" + + "github.com/pubnub/go/v5/tests/stubs" + "github.com/stretchr/testify/assert" ) func TestExponentialExhaustion(t *testing.T) { diff --git a/remove_all_push_channels_request.go b/remove_all_push_channels_request.go index eab7bd68..80648077 100644 --- a/remove_all_push_channels_request.go +++ b/remove_all_push_channels_request.go @@ -8,7 +8,7 @@ import ( "net/http" "net/url" - "github.com/pubnub/go/utils" + "github.com/pubnub/go/v5/utils" ) const removeAllPushChannelsForDevicePath = "/v1/push/sub-key/%s/devices/%s/remove" diff --git a/remove_channel_channel_group_request.go b/remove_channel_channel_group_request.go index 318f4e82..046ab1aa 100644 --- a/remove_channel_channel_group_request.go +++ b/remove_channel_channel_group_request.go @@ -9,7 +9,7 @@ import ( "net/url" "strings" - "github.com/pubnub/go/utils" + "github.com/pubnub/go/v5/utils" ) const removeChannelFromChannelGroupPath = "/v1/channel-registration/sub-key/%s/channel-group/%s" diff --git a/remove_channel_channel_group_request_test.go b/remove_channel_channel_group_request_test.go index 0f40991c..b1861bc1 100644 --- a/remove_channel_channel_group_request_test.go +++ b/remove_channel_channel_group_request_test.go @@ -5,7 +5,7 @@ import ( "net/url" "testing" - h "github.com/pubnub/go/tests/helpers" + h "github.com/pubnub/go/v5/tests/helpers" "github.com/stretchr/testify/assert" ) diff --git a/remove_channels_from_push_request.go b/remove_channels_from_push_request.go index 068f2def..3f26c3ee 100644 --- a/remove_channels_from_push_request.go +++ b/remove_channels_from_push_request.go @@ -9,7 +9,7 @@ import ( "net/url" "strings" - "github.com/pubnub/go/utils" + "github.com/pubnub/go/v5/utils" ) const removeChannelsFromPushPath = "/v1/push/sub-key/%s/devices/%s" diff --git a/request.go b/request.go index 4be422bf..ba335154 100644 --- a/request.go +++ b/request.go @@ -10,7 +10,7 @@ import ( "net/url" "time" - "github.com/pubnub/go/pnerr" + "github.com/pubnub/go/v5/pnerr" ) // StatusResponse is used to store the usable properties in the response of an request. diff --git a/set_state_request.go b/set_state_request.go index 5c9da486..0f756b26 100644 --- a/set_state_request.go +++ b/set_state_request.go @@ -10,8 +10,8 @@ import ( "net/http" "net/url" - "github.com/pubnub/go/pnerr" - "github.com/pubnub/go/utils" + "github.com/pubnub/go/v5/pnerr" + "github.com/pubnub/go/v5/utils" ) const setStatePath = "/v2/presence/sub-key/%s/channel/%s/uuid/%s/data" diff --git a/set_state_request_test.go b/set_state_request_test.go index 90987744..e0e4b15a 100644 --- a/set_state_request_test.go +++ b/set_state_request_test.go @@ -6,7 +6,7 @@ import ( "net/url" "testing" - h "github.com/pubnub/go/tests/helpers" + h "github.com/pubnub/go/v5/tests/helpers" "github.com/stretchr/testify/assert" ) diff --git a/signal_request.go b/signal_request.go index 04580f12..4214773d 100644 --- a/signal_request.go +++ b/signal_request.go @@ -8,8 +8,8 @@ import ( "io/ioutil" "mime/multipart" - "github.com/pubnub/go/pnerr" - "github.com/pubnub/go/utils" + "github.com/pubnub/go/v5/pnerr" + "github.com/pubnub/go/v5/utils" "net/http" "net/url" diff --git a/signal_request_test.go b/signal_request_test.go index 9e5cac86..a9bb65ca 100644 --- a/signal_request_test.go +++ b/signal_request_test.go @@ -4,7 +4,7 @@ import ( "fmt" "testing" - h "github.com/pubnub/go/tests/helpers" + h "github.com/pubnub/go/v5/tests/helpers" "github.com/stretchr/testify/assert" ) diff --git a/subscribe_request.go b/subscribe_request.go index f83afb0e..c6b903f6 100644 --- a/subscribe_request.go +++ b/subscribe_request.go @@ -10,7 +10,7 @@ import ( "net/url" "strconv" - "github.com/pubnub/go/utils" + "github.com/pubnub/go/v5/utils" ) const subscribePath = "/v2/subscribe/%s/%s/0" diff --git a/subscribe_request_test.go b/subscribe_request_test.go index e27006fe..ec3a7b7c 100644 --- a/subscribe_request_test.go +++ b/subscribe_request_test.go @@ -4,7 +4,7 @@ import ( "net/url" "testing" - h "github.com/pubnub/go/tests/helpers" + h "github.com/pubnub/go/v5/tests/helpers" "github.com/stretchr/testify/assert" ) diff --git a/subscription_manager.go b/subscription_manager.go index 3393a90a..7695aa98 100644 --- a/subscription_manager.go +++ b/subscription_manager.go @@ -10,7 +10,7 @@ import ( "sync" "time" - "github.com/pubnub/go/utils" + "github.com/pubnub/go/v5/utils" ) // SubscriptionManager Events: diff --git a/tests/e2e/add_channel_channel_group_test.go b/tests/e2e/add_channel_channel_group_test.go index bb06c768..35b98b1a 100644 --- a/tests/e2e/add_channel_channel_group_test.go +++ b/tests/e2e/add_channel_channel_group_test.go @@ -4,8 +4,8 @@ import ( "fmt" "testing" - pubnub "github.com/pubnub/go" - "github.com/pubnub/go/tests/stubs" + pubnub "github.com/pubnub/go/v5" + "github.com/pubnub/go/v5/tests/stubs" "github.com/stretchr/testify/assert" ) diff --git a/tests/e2e/add_channels_to_push_request_test.go b/tests/e2e/add_channels_to_push_request_test.go index b35da60e..7ea6306b 100644 --- a/tests/e2e/add_channels_to_push_request_test.go +++ b/tests/e2e/add_channels_to_push_request_test.go @@ -3,7 +3,7 @@ package e2e import ( "testing" - pubnub "github.com/pubnub/go" + pubnub "github.com/pubnub/go/v5" "github.com/stretchr/testify/assert" ) diff --git a/tests/e2e/delete_channel_group_test.go b/tests/e2e/delete_channel_group_test.go index c9b4c9a0..2e0c1a76 100644 --- a/tests/e2e/delete_channel_group_test.go +++ b/tests/e2e/delete_channel_group_test.go @@ -4,8 +4,8 @@ import ( "fmt" "testing" - pubnub "github.com/pubnub/go" - "github.com/pubnub/go/tests/stubs" + pubnub "github.com/pubnub/go/v5" + "github.com/pubnub/go/v5/tests/stubs" "github.com/stretchr/testify/assert" ) diff --git a/tests/e2e/fetch_test.go b/tests/e2e/fetch_test.go index 4ebc1ec4..b365c4ed 100644 --- a/tests/e2e/fetch_test.go +++ b/tests/e2e/fetch_test.go @@ -7,7 +7,7 @@ import ( "testing" "time" - pubnub "github.com/pubnub/go" + pubnub "github.com/pubnub/go/v5" a "github.com/stretchr/testify/assert" ) diff --git a/tests/e2e/files_test.go b/tests/e2e/files_test.go index 73805306..e48b46e2 100644 --- a/tests/e2e/files_test.go +++ b/tests/e2e/files_test.go @@ -15,8 +15,8 @@ import ( "testing" "time" - pubnub "github.com/pubnub/go" - "github.com/pubnub/go/utils" + pubnub "github.com/pubnub/go/v5" + "github.com/pubnub/go/v5/utils" "github.com/stretchr/testify/assert" ) diff --git a/tests/e2e/get_state_test.go b/tests/e2e/get_state_test.go index 6a15bece..db17bd71 100644 --- a/tests/e2e/get_state_test.go +++ b/tests/e2e/get_state_test.go @@ -4,8 +4,8 @@ import ( "fmt" "testing" - pubnub "github.com/pubnub/go" - "github.com/pubnub/go/tests/stubs" + pubnub "github.com/pubnub/go/v5" + "github.com/pubnub/go/v5/tests/stubs" "github.com/stretchr/testify/assert" ) diff --git a/tests/e2e/grant_test.go b/tests/e2e/grant_test.go index 7929da1c..18210b6f 100644 --- a/tests/e2e/grant_test.go +++ b/tests/e2e/grant_test.go @@ -8,8 +8,8 @@ import ( "testing" "time" - pubnub "github.com/pubnub/go" - "github.com/pubnub/go/tests/stubs" + pubnub "github.com/pubnub/go/v5" + "github.com/pubnub/go/v5/tests/stubs" "github.com/stretchr/testify/assert" ) diff --git a/tests/e2e/grant_token_test.go b/tests/e2e/grant_token_test.go index 6af96e59..83c22955 100644 --- a/tests/e2e/grant_token_test.go +++ b/tests/e2e/grant_token_test.go @@ -3,11 +3,12 @@ package e2e import ( //"fmt" - pubnub "github.com/pubnub/go" - "github.com/stretchr/testify/assert" "log" "os" "testing" + + pubnub "github.com/pubnub/go/v5" + "github.com/stretchr/testify/assert" ) func TestGrantToken(t *testing.T) { diff --git a/tests/e2e/heartbeat_test.go b/tests/e2e/heartbeat_test.go index 913800b3..5c8811f9 100644 --- a/tests/e2e/heartbeat_test.go +++ b/tests/e2e/heartbeat_test.go @@ -8,8 +8,8 @@ import ( "testing" "time" - pubnub "github.com/pubnub/go" - "github.com/pubnub/go/tests/stubs" + pubnub "github.com/pubnub/go/v5" + "github.com/pubnub/go/v5/tests/stubs" "github.com/stretchr/testify/assert" ) diff --git a/tests/e2e/helper.go b/tests/e2e/helper.go index c0cccadb..26b0fa99 100644 --- a/tests/e2e/helper.go +++ b/tests/e2e/helper.go @@ -9,7 +9,7 @@ import ( "net/http" "time" - pubnub "github.com/pubnub/go" + pubnub "github.com/pubnub/go/v5" ) var enableDebuggingInTests = false diff --git a/tests/e2e/here_now_test.go b/tests/e2e/here_now_test.go index 5e78183c..6aee297f 100644 --- a/tests/e2e/here_now_test.go +++ b/tests/e2e/here_now_test.go @@ -5,8 +5,8 @@ import ( "fmt" "testing" - pubnub "github.com/pubnub/go" - "github.com/pubnub/go/tests/stubs" + pubnub "github.com/pubnub/go/v5" + "github.com/pubnub/go/v5/tests/stubs" "github.com/stretchr/testify/assert" ) diff --git a/tests/e2e/history_delete_test.go b/tests/e2e/history_delete_test.go index 1ec2f1d3..36106a1d 100644 --- a/tests/e2e/history_delete_test.go +++ b/tests/e2e/history_delete_test.go @@ -3,7 +3,7 @@ package e2e import ( "testing" - pubnub "github.com/pubnub/go" + pubnub "github.com/pubnub/go/v5" "github.com/stretchr/testify/assert" ) diff --git a/tests/e2e/history_test.go b/tests/e2e/history_test.go index 7b031f5a..a414491e 100644 --- a/tests/e2e/history_test.go +++ b/tests/e2e/history_test.go @@ -5,8 +5,8 @@ import ( "log" "os" - pubnub "github.com/pubnub/go" - "github.com/pubnub/go/tests/stubs" + pubnub "github.com/pubnub/go/v5" + "github.com/pubnub/go/v5/tests/stubs" "github.com/stretchr/testify/assert" "testing" diff --git a/tests/e2e/list_all_channel_group_test.go b/tests/e2e/list_all_channel_group_test.go index b065158e..a635661f 100644 --- a/tests/e2e/list_all_channel_group_test.go +++ b/tests/e2e/list_all_channel_group_test.go @@ -5,8 +5,8 @@ import ( "testing" "time" - pubnub "github.com/pubnub/go" - "github.com/pubnub/go/tests/stubs" + pubnub "github.com/pubnub/go/v5" + "github.com/pubnub/go/v5/tests/stubs" "github.com/stretchr/testify/assert" ) diff --git a/tests/e2e/list_push_provisions_request_test.go b/tests/e2e/list_push_provisions_request_test.go index 0475ab36..6071c8ce 100644 --- a/tests/e2e/list_push_provisions_request_test.go +++ b/tests/e2e/list_push_provisions_request_test.go @@ -2,9 +2,10 @@ package e2e import ( "fmt" - pubnub "github.com/pubnub/go" - "github.com/stretchr/testify/assert" "testing" + + pubnub "github.com/pubnub/go/v5" + "github.com/stretchr/testify/assert" ) func TestListPushProvisionsNotStubbed(t *testing.T) { diff --git a/tests/e2e/message_actions_test.go b/tests/e2e/message_actions_test.go index a43cfd8d..f9ed5b66 100644 --- a/tests/e2e/message_actions_test.go +++ b/tests/e2e/message_actions_test.go @@ -9,7 +9,7 @@ import ( "testing" "time" - pubnub "github.com/pubnub/go" + pubnub "github.com/pubnub/go/v5" "github.com/stretchr/testify/assert" ) diff --git a/tests/e2e/message_counts_test.go b/tests/e2e/message_counts_test.go index 373cfb5b..ed048f8d 100644 --- a/tests/e2e/message_counts_test.go +++ b/tests/e2e/message_counts_test.go @@ -5,7 +5,7 @@ import ( "testing" "time" - pubnub "github.com/pubnub/go" + pubnub "github.com/pubnub/go/v5" a "github.com/stretchr/testify/assert" ) diff --git a/tests/e2e/objectsV2_test.go b/tests/e2e/objectsV2_test.go index 77145153..96b58c69 100644 --- a/tests/e2e/objectsV2_test.go +++ b/tests/e2e/objectsV2_test.go @@ -8,7 +8,7 @@ import ( "testing" "time" - pubnub "github.com/pubnub/go" + pubnub "github.com/pubnub/go/v5" "github.com/stretchr/testify/assert" ) diff --git a/tests/e2e/pn_test.go b/tests/e2e/pn_test.go index 0bcba6cd..26344545 100644 --- a/tests/e2e/pn_test.go +++ b/tests/e2e/pn_test.go @@ -10,7 +10,7 @@ import ( //"time" - pubnub "github.com/pubnub/go" + pubnub "github.com/pubnub/go/v5" ) // import _ "net/http/pprof" diff --git a/tests/e2e/publish_test.go b/tests/e2e/publish_test.go index a21be612..738deaaf 100644 --- a/tests/e2e/publish_test.go +++ b/tests/e2e/publish_test.go @@ -6,9 +6,9 @@ import ( "testing" "time" - pubnub "github.com/pubnub/go" - "github.com/pubnub/go/pnerr" - "github.com/pubnub/go/tests/stubs" + pubnub "github.com/pubnub/go/v5" + "github.com/pubnub/go/v5/pnerr" + "github.com/pubnub/go/v5/tests/stubs" "github.com/stretchr/testify/assert" ) diff --git a/tests/e2e/remove_all_push_channels_request_test.go b/tests/e2e/remove_all_push_channels_request_test.go index f2aca485..c8e526fb 100644 --- a/tests/e2e/remove_all_push_channels_request_test.go +++ b/tests/e2e/remove_all_push_channels_request_test.go @@ -3,7 +3,7 @@ package e2e import ( "testing" - pubnub "github.com/pubnub/go" + pubnub "github.com/pubnub/go/v5" "github.com/stretchr/testify/assert" ) diff --git a/tests/e2e/remove_channel_channel_group_test.go b/tests/e2e/remove_channel_channel_group_test.go index c2748640..3c284644 100644 --- a/tests/e2e/remove_channel_channel_group_test.go +++ b/tests/e2e/remove_channel_channel_group_test.go @@ -4,7 +4,7 @@ import ( "testing" "time" - pubnub "github.com/pubnub/go" + pubnub "github.com/pubnub/go/v5" "github.com/stretchr/testify/assert" ) diff --git a/tests/e2e/remove_channels_from_push_request_test.go b/tests/e2e/remove_channels_from_push_request_test.go index 18d53dc2..a8e88a80 100644 --- a/tests/e2e/remove_channels_from_push_request_test.go +++ b/tests/e2e/remove_channels_from_push_request_test.go @@ -3,7 +3,7 @@ package e2e import ( "testing" - pubnub "github.com/pubnub/go" + pubnub "github.com/pubnub/go/v5" "github.com/stretchr/testify/assert" ) diff --git a/tests/e2e/set_state_test.go b/tests/e2e/set_state_test.go index 0e6c7bba..74dc69d7 100644 --- a/tests/e2e/set_state_test.go +++ b/tests/e2e/set_state_test.go @@ -5,7 +5,7 @@ import ( "reflect" "testing" - pubnub "github.com/pubnub/go" + pubnub "github.com/pubnub/go/v5" "github.com/stretchr/testify/assert" ) diff --git a/tests/e2e/signal_request_test.go b/tests/e2e/signal_request_test.go index 94d000d8..c88c334f 100644 --- a/tests/e2e/signal_request_test.go +++ b/tests/e2e/signal_request_test.go @@ -8,7 +8,7 @@ import ( "testing" "time" - pubnub "github.com/pubnub/go" + pubnub "github.com/pubnub/go/v5" "github.com/stretchr/testify/assert" ) diff --git a/tests/e2e/subscribe_test.go b/tests/e2e/subscribe_test.go index 5cd29bef..24b6b75c 100644 --- a/tests/e2e/subscribe_test.go +++ b/tests/e2e/subscribe_test.go @@ -13,8 +13,8 @@ import ( "time" "github.com/google/uuid" - pubnub "github.com/pubnub/go" - "github.com/pubnub/go/tests/stubs" + pubnub "github.com/pubnub/go/v5" + "github.com/pubnub/go/v5/tests/stubs" "github.com/stretchr/testify/assert" "net/http" diff --git a/tests/e2e/subscribe_test_1.8.go b/tests/e2e/subscribe_test_1.8.go index a717bb74..b5616e20 100644 --- a/tests/e2e/subscribe_test_1.8.go +++ b/tests/e2e/subscribe_test_1.8.go @@ -7,7 +7,7 @@ import ( "testing" "time" - pubnub "github.com/pubnub/go" + pubnub "github.com/pubnub/go/v5" "github.com/stretchr/testify/assert" ) diff --git a/tests/e2e/subscribe_test_1.9.go b/tests/e2e/subscribe_test_1.9.go index 71c1d888..1a7e2612 100644 --- a/tests/e2e/subscribe_test_1.9.go +++ b/tests/e2e/subscribe_test_1.9.go @@ -10,7 +10,7 @@ import ( "testing" "time" - pubnub "github.com/pubnub/go" + pubnub "github.com/pubnub/go/v5" "github.com/stretchr/testify/assert" ) diff --git a/tests/e2e/time_test.go b/tests/e2e/time_test.go index aaa077ad..d3fd3d6f 100644 --- a/tests/e2e/time_test.go +++ b/tests/e2e/time_test.go @@ -3,8 +3,8 @@ package e2e import ( "testing" - pubnub "github.com/pubnub/go" - "github.com/pubnub/go/tests/stubs" + pubnub "github.com/pubnub/go/v5" + "github.com/pubnub/go/v5/tests/stubs" "github.com/stretchr/testify/assert" ) diff --git a/tests/e2e/where_now_test.go b/tests/e2e/where_now_test.go index fdf1c251..66857e77 100644 --- a/tests/e2e/where_now_test.go +++ b/tests/e2e/where_now_test.go @@ -4,8 +4,8 @@ import ( "fmt" "testing" - pubnub "github.com/pubnub/go" - "github.com/pubnub/go/tests/stubs" + pubnub "github.com/pubnub/go/v5" + "github.com/pubnub/go/v5/tests/stubs" "github.com/stretchr/testify/assert" ) diff --git a/tests/helpers/url_helpers_test.go b/tests/helpers/url_helpers_test.go index eaef68a5..dc903f7f 100644 --- a/tests/helpers/url_helpers_test.go +++ b/tests/helpers/url_helpers_test.go @@ -4,7 +4,7 @@ import ( "net/url" "testing" - "github.com/pubnub/go/utils" + "github.com/pubnub/go/v5/utils" "github.com/stretchr/testify/assert" ) diff --git a/tests/manual/destroy.go b/tests/manual/destroy.go index 6d2cf326..365a9952 100644 --- a/tests/manual/destroy.go +++ b/tests/manual/destroy.go @@ -6,7 +6,7 @@ import ( "runtime/pprof" "time" - pubnub "github.com/pubnub/go" + pubnub "github.com/pubnub/go/v5" ) func main() { diff --git a/tests/stubs/interceptor.go b/tests/stubs/interceptor.go index 5e6af279..0b7d32be 100644 --- a/tests/stubs/interceptor.go +++ b/tests/stubs/interceptor.go @@ -9,7 +9,7 @@ import ( "net/url" "time" - "github.com/pubnub/go/tests/helpers" + "github.com/pubnub/go/v5/tests/helpers" ) type Interceptor struct { diff --git a/time_request.go b/time_request.go index 7f6b065d..b14ceff7 100644 --- a/time_request.go +++ b/time_request.go @@ -9,7 +9,7 @@ import ( "net/http" "net/url" - "github.com/pubnub/go/pnerr" + "github.com/pubnub/go/v5/pnerr" ) const timePath = "/time/0" diff --git a/time_request_test.go b/time_request_test.go index 99b6cbcf..fae395b2 100644 --- a/time_request_test.go +++ b/time_request_test.go @@ -4,7 +4,7 @@ import ( "net/url" "testing" - h "github.com/pubnub/go/tests/helpers" + h "github.com/pubnub/go/v5/tests/helpers" "github.com/stretchr/testify/assert" ) diff --git a/utils/string_utils.go b/utils/string_utils.go index 0618eab4..8448dcac 100644 --- a/utils/string_utils.go +++ b/utils/string_utils.go @@ -9,7 +9,7 @@ import ( "strings" uuid "github.com/google/uuid" - pnerr "github.com/pubnub/go/pnerr" + pnerr "github.com/pubnub/go/v5/pnerr" ) // JoinChannels encodes and joins channels diff --git a/where_now_request.go b/where_now_request.go index 5548e31f..5f906beb 100644 --- a/where_now_request.go +++ b/where_now_request.go @@ -10,7 +10,7 @@ import ( "net/http" "net/url" - "github.com/pubnub/go/pnerr" + "github.com/pubnub/go/v5/pnerr" ) var whereNowPath = "/v2/presence/sub-key/%s/uuid/%s" diff --git a/where_now_request_test.go b/where_now_request_test.go index f898d464..a838708d 100644 --- a/where_now_request_test.go +++ b/where_now_request_test.go @@ -4,7 +4,7 @@ import ( "net/url" "testing" - h "github.com/pubnub/go/tests/helpers" + h "github.com/pubnub/go/v5/tests/helpers" "github.com/stretchr/testify/assert" )