Skip to content

Commit

Permalink
Merge pull request fermyon#1990 from adamreese/chore/tinygo-v2-imports
Browse files Browse the repository at this point in the history
chore(templates): Update TinyGo templates to v2
  • Loading branch information
adamreese authored Oct 30, 2023
2 parents 21215d3 + 2a6d412 commit 671f599
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 671f599

Please sign in to comment.