Repository: line/line-bot-sdk-go
Pull request #273 (2021-04-08 05:18:54)

upgrade major version to v7 for meets the specification of go module
Since PR #264 enabled the go module, it‘s better to follow the [specification of the go module](https://blog.golang.org/v2-go-modules) to upgrade the major version. 

Currently, The latest version of package still stuck at v1.3.0 [pkg.go.dev](https://pkg.go.dev/github.com/line/line-bot-sdk-go/linebot) This change will help the version control back to the major line


Patch:
diff --git a/README.md b/README.md
index cc0b154..912cda0 100644
--- a/README.md
+++ b/README.md
@@ -18,19 +18,19 @@ See the official API documentation for more information.
 
 ## Requirements
 
-This library requires Go 1.10 or later.
+This library requires Go 1.11 or later.
 
 ## Installation ##
 
 ```sh
-$ go get github.com/line/line-bot-sdk-go/linebot
+$ go get -u github.com/line/line-bot-sdk-go/v7/linebot
 ```
 
 ## Configuration ##
 
 ```go
 import (
-	"github.com/line/line-bot-sdk-go/linebot"
+	"github.com/line/line-bot-sdk-go/v7/linebot"
 )
 
 func main() {
diff --git a/examples/access_token_helper/main.go b/examples/access_token_helper/main.go
index 36cbb93..3b37b62 100644
--- a/examples/access_token_helper/main.go
+++ b/examples/access_token_helper/main.go
@@ -19,7 +19,7 @@ import (
 	"log"
 	"os"
 
-	"github.com/line/line-bot-sdk-go/linebot"
+	"github.com/line/line-bot-sdk-go/v7/linebot"
 )
 
 func main() {
diff --git a/examples/delivery_helper/main.go b/examples/delivery_helper/main.go
index 34cbddd..1fe00ec 100644
--- a/examples/delivery_helper/main.go
+++ b/examples/delivery_helper/main.go
@@ -19,7 +19,7 @@ import (
 	"log"
 	"os"
 
-	"github.com/line/line-bot-sdk-go/linebot"
+	"github.com/line/line-bot-sdk-go/v7/linebot"
 )
 
 func main() {
diff --git a/examples/echo_bot/server.go b/examples/echo_bot/server.go
index 0ed2c6d..ecbfaa4 100644
--- a/examples/echo_bot/server.go
+++ b/examples/echo_bot/server.go
@@ -20,7 +20,7 @@ import (
 	"net/http"
 	"os"
 
-	"github.com/line/line-bot-sdk-go/linebot"
+	"github.com/line/line-bot-sdk-go/v7/linebot"
 )
 
 func main() {
diff --git a/examples/echo_bot_handler/server.go b/examples/echo_bot_handler/server.go
index 5fc9a2c..b217b49 100644
--- a/examples/echo_bot_handler/server.go
+++ b/examples/echo_bot_handler/server.go
@@ -19,8 +19,8 @@ import (
 	"net/http"
 	"os"
 
-	"github.com/line/line-bot-sdk-go/linebot"
-	"github.com/line/line-bot-sdk-go/linebot/httphandler"
+	"github.com/line/line-bot-sdk-go/v7/linebot"
+	"github.com/line/line-bot-sdk-go/v7/linebot/httphandler"
 )
 
 func main() {
diff --git a/examples/insight_helper/main.go b/examples/insight_helper/main.go
index 3d31f56..2f64880 100644
--- a/examples/insight_helper/main.go
+++ b/examples/insight_helper/main.go
@@ -19,7 +19,7 @@ import (
 	"log"
 	"os"
 
-	"github.com/line/line-bot-sdk-go/linebot"
+	"github.com/line/line-bot-sdk-go/v7/linebot"
 )
 
 func main() {
diff --git a/examples/kitchensink/server.go b/examples/kitchensink/server.go
index 21948a5..340c37e 100644
--- a/examples/kitchensink/server.go
+++ b/examples/kitchensink/server.go
@@ -24,7 +24,7 @@ import (
 	"os/exec"
 	"path/filepath"
 
-	"github.com/line/line-bot-sdk-go/linebot"
+	"github.com/line/line-bot-sdk-go/v7/linebot"
 )
 
 func main() {
diff --git a/examples/richmenu_helper/main.go b/examples/richmenu_helper/main.go
index 7b385b1..dfb1aef 100644
--- a/examples/richmenu_helper/main.go
+++ b/examples/richmenu_helper/main.go
@@ -20,7 +20,7 @@ import (
 	"log"
 	"os"
 
-	"github.com/line/line-bot-sdk-go/linebot"
+	"github.com/line/line-bot-sdk-go/v7/linebot"
 )
 
 func main() {
diff --git a/go.mod b/go.mod
index 255ced9..030da66 100644
--- a/go.mod
+++ b/go.mod
@@ -1,4 +1,4 @@
-module github.com/line/line-bot-sdk-go
+module github.com/line/line-bot-sdk-go/v7
 
 go 1.11
 
diff --git a/linebot/httphandler/httphandler.go b/linebot/httphandler/httphandler.go
index 7502a29..e219fa9 100644
--- a/linebot/httphandler/httphandler.go
+++ b/linebot/httphandler/httphandler.go
@@ -18,7 +18,7 @@ import (
 	"errors"
 	"net/http"
 
-	"github.com/line/line-bot-sdk-go/linebot"
+	"github.com/line/line-bot-sdk-go/v7/linebot"
 )
 
 // EventsHandlerFunc type


Test patch:
diff --git a/linebot/example_test.go b/linebot/example_test.go
index a915b9c..3e3230d 100644
--- a/linebot/example_test.go
+++ b/linebot/example_test.go
@@ -18,7 +18,7 @@ import (
 	"fmt"
 	"os"
 
-	"github.com/line/line-bot-sdk-go/linebot"
+	"github.com/line/line-bot-sdk-go/v7/linebot"
 )
 
 func ExampleIDsScanner() {
diff --git a/linebot/httphandler/httphandler_test.go b/linebot/httphandler/httphandler_test.go
index 39a7b59..c436c2b 100644
--- a/linebot/httphandler/httphandler_test.go
+++ b/linebot/httphandler/httphandler_test.go
@@ -24,7 +24,7 @@ import (
 	"net/http/httptest"
 	"testing"
 
-	"github.com/line/line-bot-sdk-go/linebot"
+	"github.com/line/line-bot-sdk-go/v7/linebot"
 )
 
 var testRequestBody = `{