Skip to content

Commit

Permalink
fix: module namespace by appending v2 (#52)
Browse files Browse the repository at this point in the history
* fix: module namespace by appending v2

* chore: bump version
  • Loading branch information
Justintime50 authored Feb 10, 2022
1 parent 136e043 commit 0f8e105
Show file tree
Hide file tree
Showing 46 changed files with 72 additions and 46 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
# CHANGELOG

## v2.0.1 (2022-02-10)

* Corrects namespace for v2 release from `github.com/EasyPost/easypost-go` to `github.com/EasyPost/easypost-go/v2`

## v2.0.0 (2022-02-09)

**NOTE: Do not use this release, use v2.0.1 or later due to this release being incorrectly packaged.**

* Bumps minimum Go version from `1.12` to `1.15`
* Bumps dependencies
* Lints the entire project
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ This work is licensed under the ISC License, a copy of which can be found at [LI
## Installation

```bash
go get -u github.com/EasyPost/easypost-go
go get -u github.com/EasyPost/easypost-go/v2
```

## Documentation
Expand All @@ -26,7 +26,7 @@ import (
"fmt"
"os"

"github.com/EasyPost/easypost-go"
"github.com/EasyPost/easypost-go/v2"
)

func main() {
Expand Down
3 changes: 2 additions & 1 deletion examples/addresses/create/create_address.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ package main
import (
"encoding/json"
"fmt"
"github.com/EasyPost/easypost-go"
"os"

"github.com/EasyPost/easypost-go/v2"
)

func main() {
Expand Down
3 changes: 2 additions & 1 deletion examples/addresses/retrieve/retrieve_address.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ package main
import (
"encoding/json"
"fmt"
"github.com/EasyPost/easypost-go"
"os"

"github.com/EasyPost/easypost-go/v2"
)

func main() {
Expand Down
3 changes: 2 additions & 1 deletion examples/addresses/retrieve_all/retrieve_addresses.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ package main
import (
"encoding/json"
"fmt"
"github.com/EasyPost/easypost-go"
"os"

"github.com/EasyPost/easypost-go/v2"
)

func main() {
Expand Down
3 changes: 2 additions & 1 deletion examples/batches/create/create_batch.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ package main
import (
"encoding/json"
"fmt"
"github.com/EasyPost/easypost-go"
"os"

"github.com/EasyPost/easypost-go/v2"
)

func main() {
Expand Down
3 changes: 2 additions & 1 deletion examples/batches/retrieve/retrieve_batch.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ package main
import (
"encoding/json"
"fmt"
"github.com/EasyPost/easypost-go"
"os"

"github.com/EasyPost/easypost-go/v2"
)

func main() {
Expand Down
3 changes: 2 additions & 1 deletion examples/batches/retrieve_all/retrieve_batches.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ package main
import (
"encoding/json"
"fmt"
"github.com/EasyPost/easypost-go"
"os"

"github.com/EasyPost/easypost-go/v2"
)

func main() {
Expand Down
3 changes: 2 additions & 1 deletion examples/batches/scan_form_batch/scan_form_batch.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ package main
import (
"encoding/json"
"fmt"
"github.com/EasyPost/easypost-go"
"os"

"github.com/EasyPost/easypost-go/v2"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/events/retrieve_all/retrieve_events.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"os"
"time"

"github.com/EasyPost/easypost-go"
"github.com/EasyPost/easypost-go/v2"
)

func main() {
Expand Down
3 changes: 2 additions & 1 deletion examples/parcels/create/create_parcel.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ package main
import (
"encoding/json"
"fmt"
"github.com/EasyPost/easypost-go"
"os"

"github.com/EasyPost/easypost-go/v2"
)

func main() {
Expand Down
3 changes: 2 additions & 1 deletion examples/parcels/retrieve/retrieve_parcel.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ package main
import (
"encoding/json"
"fmt"
"github.com/EasyPost/easypost-go"
"os"

"github.com/EasyPost/easypost-go/v2"
)

func main() {
Expand Down
3 changes: 2 additions & 1 deletion examples/rates/retrieve_rate.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ package main
import (
"encoding/json"
"fmt"
"github.com/EasyPost/easypost-go"
"os"

"github.com/EasyPost/easypost-go/v2"
)

func main() {
Expand Down
3 changes: 2 additions & 1 deletion examples/scanforms/create/create_scanform.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ package main
import (
"encoding/json"
"fmt"
"github.com/EasyPost/easypost-go"
"os"

"github.com/EasyPost/easypost-go/v2"
)

func main() {
Expand Down
3 changes: 2 additions & 1 deletion examples/scanforms/retrieve/retrieve_scanform.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ package main
import (
"encoding/json"
"fmt"
"github.com/EasyPost/easypost-go"
"os"

"github.com/EasyPost/easypost-go/v2"
)

func main() {
Expand Down
3 changes: 2 additions & 1 deletion examples/scanforms/retrieve_all/retrieve_scanforms.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ package main
import (
"encoding/json"
"fmt"
"github.com/EasyPost/easypost-go"
"os"

"github.com/EasyPost/easypost-go/v2"
)

func main() {
Expand Down
3 changes: 2 additions & 1 deletion examples/shipments/buy/buy_shipment.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ package main
import (
"encoding/json"
"fmt"
"github.com/EasyPost/easypost-go"
"os"

"github.com/EasyPost/easypost-go/v2"
)

func main() {
Expand Down
3 changes: 2 additions & 1 deletion examples/shipments/create/create_shipment.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ package main
import (
"encoding/json"
"fmt"
"github.com/EasyPost/easypost-go"
"os"

"github.com/EasyPost/easypost-go/v2"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/shipments/lowest_rate/lowest_rate.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"os"

"github.com/EasyPost/easypost-go"
"github.com/EasyPost/easypost-go/v2"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/shipments/rerate/rerate_shipment.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"os"

"github.com/EasyPost/easypost-go"
"github.com/EasyPost/easypost-go/v2"
)

func main() {
Expand Down
3 changes: 2 additions & 1 deletion examples/shipments/retrieve/retrieve_shipment.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ package main
import (
"encoding/json"
"fmt"
"github.com/EasyPost/easypost-go"
"os"

"github.com/EasyPost/easypost-go/v2"
)

func main() {
Expand Down
3 changes: 2 additions & 1 deletion examples/shipments/retrieve_all/retrieve_shipments.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ package main
import (
"encoding/json"
"fmt"
"github.com/EasyPost/easypost-go"
"os"

"github.com/EasyPost/easypost-go/v2"
)

func main() {
Expand Down
3 changes: 2 additions & 1 deletion examples/trackers/create/create_tracker.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ package main
import (
"encoding/json"
"fmt"
"github.com/EasyPost/easypost-go"
"os"

"github.com/EasyPost/easypost-go/v2"
)

func main() {
Expand Down
3 changes: 2 additions & 1 deletion examples/trackers/retrieve/retrieve_tracker.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ package main
import (
"encoding/json"
"fmt"
"github.com/EasyPost/easypost-go"
"os"

"github.com/EasyPost/easypost-go/v2"
)

func main() {
Expand Down
3 changes: 2 additions & 1 deletion examples/trackers/retrieve_all/retrieve_trackers.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ package main
import (
"encoding/json"
"fmt"
"github.com/EasyPost/easypost-go"
"os"

"github.com/EasyPost/easypost-go/v2"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/users/update_brand.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"os"

"github.com/EasyPost/easypost-go"
"github.com/EasyPost/easypost-go/v2"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/webhooks/handler/webhook_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"net/http"
"strings"

"github.com/EasyPost/easypost-go"
"github.com/EasyPost/easypost-go/v2"
)

type Handler struct {
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/EasyPost/easypost-go
module github.com/EasyPost/easypost-go/v2

go 1.15

Expand Down
2 changes: 1 addition & 1 deletion tests/address_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package easypost_test

import (
"github.com/EasyPost/easypost-go"
"github.com/EasyPost/easypost-go/v2"
)

func (c *ClientTests) TestAddressCreationVerification() {
Expand Down
2 changes: 1 addition & 1 deletion tests/batch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package easypost_test
import (
"time"

"github.com/EasyPost/easypost-go"
"github.com/EasyPost/easypost-go/v2"
)

func (c *ClientTests) TestBatchCreateAndBuy() {
Expand Down
2 changes: 1 addition & 1 deletion tests/carrier_type_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package easypost_test

import (
"github.com/EasyPost/easypost-go"
"github.com/EasyPost/easypost-go/v2"
)

func (c *ClientTests) TestCarrierTypes() {
Expand Down
2 changes: 1 addition & 1 deletion tests/client_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package easypost_test

import (
"github.com/EasyPost/easypost-go"
"github.com/EasyPost/easypost-go/v2"
)

func (c *ClientTests) TestClientTimeout() {
Expand Down
2 changes: 1 addition & 1 deletion tests/error_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/json"
"testing"

"github.com/EasyPost/easypost-go"
"github.com/EasyPost/easypost-go/v2"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion tests/event_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package easypost_test

import "github.com/EasyPost/easypost-go"
import "github.com/EasyPost/easypost-go/v2"

func (c *ClientTests) TestEventsGet() {
client := c.TestClient()
Expand Down
2 changes: 1 addition & 1 deletion tests/insurance_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package easypost_test

import (
"github.com/EasyPost/easypost-go"
"github.com/EasyPost/easypost-go/v2"
)

func (c *ClientTests) TestInsuranceCreation() {
Expand Down
2 changes: 1 addition & 1 deletion tests/order_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package easypost_test

import (
"github.com/EasyPost/easypost-go"
"github.com/EasyPost/easypost-go/v2"
)

func (c *ClientTests) TestOrderCreateThenBuy() {
Expand Down
2 changes: 1 addition & 1 deletion tests/parcel_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package easypost_test

import (
"github.com/EasyPost/easypost-go"
"github.com/EasyPost/easypost-go/v2"
)

func (c *ClientTests) TestParcelCreation() {
Expand Down
2 changes: 1 addition & 1 deletion tests/pickup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package easypost_test
import (
"time"

"github.com/EasyPost/easypost-go"
"github.com/EasyPost/easypost-go/v2"
)

func noonOnNextMonday() time.Time {
Expand Down
Loading

0 comments on commit 0f8e105

Please sign in to comment.