Skip to content

Commit

Permalink
chore(templates): Update tinygo templates to v2
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Reese <[email protected]>
  • Loading branch information
adamreese committed Oct 30, 2023
1 parent 3185092 commit 2a6d412
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions templates/http-go/content/go.mod
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion templates/http-go/content/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
4 changes: 2 additions & 2 deletions templates/redis-go/content/go.mod
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion templates/redis-go/content/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 2a6d412

Please sign in to comment.