diff --git a/templates/http-go/content/go.mod b/templates/http-go/content/go.mod index 503efb1da2..72f748cb5d 100644 --- a/templates/http-go/content/go.mod +++ b/templates/http-go/content/go.mod @@ -1,7 +1,7 @@ module github.com/{{project-name | snake_case}} -go 1.17 +go 1.20 -require github.com/fermyon/spin/sdk/go main +require github.com/fermyon/spin/sdk/go/v2 main require github.com/julienschmidt/httprouter v1.3.0 // indirect diff --git a/templates/http-go/content/main.go b/templates/http-go/content/main.go index c18f862304..93d63a894e 100644 --- a/templates/http-go/content/main.go +++ b/templates/http-go/content/main.go @@ -4,7 +4,7 @@ import ( "fmt" "net/http" - spinhttp "github.com/fermyon/spin/sdk/go/http" + spinhttp "github.com/fermyon/spin/sdk/go/v2/http" ) func init() { diff --git a/templates/redis-go/content/go.mod b/templates/redis-go/content/go.mod index 87d9d85a20..5413c85dc5 100644 --- a/templates/redis-go/content/go.mod +++ b/templates/redis-go/content/go.mod @@ -1,5 +1,5 @@ module github.com/{{project-name | snake_case}} -go 1.17 +go 1.20 -require github.com/fermyon/spin/sdk/go main +require github.com/fermyon/spin/sdk/go/v2 main diff --git a/templates/redis-go/content/main.go b/templates/redis-go/content/main.go index 6dee40b621..5258d507f1 100644 --- a/templates/redis-go/content/main.go +++ b/templates/redis-go/content/main.go @@ -3,7 +3,7 @@ package main import ( "fmt" - "github.com/fermyon/spin/sdk/go/redis" + "github.com/fermyon/spin/sdk/go/v2/redis" ) func init() {