Skip to content

Commit 671f599

Browse files
authored
Merge pull request #1990 from adamreese/chore/tinygo-v2-imports
chore(templates): Update TinyGo templates to v2
2 parents 21215d3 + 2a6d412 commit 671f599

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

templates/http-go/content/go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module github.com/{{project-name | snake_case}}
22

3-
go 1.17
3+
go 1.20
44

5-
require github.com/fermyon/spin/sdk/go main
5+
require github.com/fermyon/spin/sdk/go/v2 main
66

77
require github.com/julienschmidt/httprouter v1.3.0 // indirect

templates/http-go/content/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"fmt"
55
"net/http"
66

7-
spinhttp "github.com/fermyon/spin/sdk/go/http"
7+
spinhttp "github.com/fermyon/spin/sdk/go/v2/http"
88
)
99

1010
func init() {

templates/redis-go/content/go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module github.com/{{project-name | snake_case}}
22

3-
go 1.17
3+
go 1.20
44

5-
require github.com/fermyon/spin/sdk/go main
5+
require github.com/fermyon/spin/sdk/go/v2 main

templates/redis-go/content/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package main
33
import (
44
"fmt"
55

6-
"github.com/fermyon/spin/sdk/go/redis"
6+
"github.com/fermyon/spin/sdk/go/v2/redis"
77
)
88

99
func init() {

0 commit comments

Comments
 (0)