Skip to content

Commit

Permalink
Fix go module importing (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
avorima authored and pennycoders committed Dec 17, 2019
1 parent 69748ff commit 13f47bc
Show file tree
Hide file tree
Showing 14 changed files with 21 additions and 20 deletions.
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ export PATH=$PATH:$GOBIN
The following `go` command will download `profitbricks-sdk-go` to your configured `GOPATH`:

```go
go get "github.com/profitbricks/profitbricks-sdk-go"
go get "github.com/profitbricks/profitbricks-sdk-go/v5"
```

The source code of the package will be located here:
Expand All @@ -199,8 +199,9 @@ Include the ProfitBricks SDK for Go under the list of imports.

```go
import(
"fmt"
"github.com/profitbricks/profitbricks-sdk-go"
"fmt"

"github.com/profitbricks/profitbricks-sdk-go/v5"
)
```

Expand All @@ -217,9 +218,9 @@ It might be necessary to accept credentials through environment variables in a c
```go
import (
"fmt"
"os"
"os"

"github.com/profitbricks/profitbricks-sdk-go"
"github.com/profitbricks/profitbricks-sdk-go/v5"
)

func main() {
Expand Down Expand Up @@ -294,7 +295,7 @@ client.SetDepth(3)
Set Cloud API URL:
```go
client.SetURL("https://api.profitbricks.com/cloudapi/v4")
client.SetURL("https://api.profitbricks.com/cloudapi/v5")
```
#### SetUserAgent
Expand Down Expand Up @@ -2809,7 +2810,7 @@ import (
"fmt"
"os"

"github.com/profitbricks/profitbricks-sdk-go"
"github.com/profitbricks/profitbricks-sdk-go/v5"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/profitbricks/profitbricks-sdk-go
module github.com/profitbricks/profitbricks-sdk-go/v5

require (
github.com/davecgh/go-spew v1.1.1 // indirect
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/datacenter_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"testing"

sdk "github.com/profitbricks/profitbricks-sdk-go"
sdk "github.com/profitbricks/profitbricks-sdk-go/v5"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion integration-tests/firewallrule_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"testing"

sdk "github.com/profitbricks/profitbricks-sdk-go"
sdk "github.com/profitbricks/profitbricks-sdk-go/v5"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion integration-tests/helpers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strings"
"sync"

sdk "github.com/profitbricks/profitbricks-sdk-go"
sdk "github.com/profitbricks/profitbricks-sdk-go/v5"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/ipblock_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"strings"
"testing"

sdk "github.com/profitbricks/profitbricks-sdk-go"
sdk "github.com/profitbricks/profitbricks-sdk-go/v5"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion integration-tests/lan_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"testing"

sdk "github.com/profitbricks/profitbricks-sdk-go"
sdk "github.com/profitbricks/profitbricks-sdk-go/v5"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion integration-tests/loadbalancer_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"testing"

sdk "github.com/profitbricks/profitbricks-sdk-go"
sdk "github.com/profitbricks/profitbricks-sdk-go/v5"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion integration-tests/nic_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"sync"
"testing"

sdk "github.com/profitbricks/profitbricks-sdk-go"
sdk "github.com/profitbricks/profitbricks-sdk-go/v5"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion integration-tests/request_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"net/url"
"testing"

sdk "github.com/profitbricks/profitbricks-sdk-go"
sdk "github.com/profitbricks/profitbricks-sdk-go/v5"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion integration-tests/server_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"testing"

sdk "github.com/profitbricks/profitbricks-sdk-go"
sdk "github.com/profitbricks/profitbricks-sdk-go/v5"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion integration-tests/snapshot_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"sync"
"testing"

sdk "github.com/profitbricks/profitbricks-sdk-go"
sdk "github.com/profitbricks/profitbricks-sdk-go/v5"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion integration-tests/usermanagment_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"testing"
"time"

sdk "github.com/profitbricks/profitbricks-sdk-go"
sdk "github.com/profitbricks/profitbricks-sdk-go/v5"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion integration-tests/volume_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"sync"
"testing"

sdk "github.com/profitbricks/profitbricks-sdk-go"
sdk "github.com/profitbricks/profitbricks-sdk-go/v5"
"github.com/stretchr/testify/assert"
)

Expand Down

0 comments on commit 13f47bc

Please sign in to comment.