Skip to content

Commit d8e8c56

Browse files
committed
chore(examples): Update Go import paths to v2
Signed-off-by: Adam Reese <[email protected]>
1 parent ed4e13f commit d8e8c56

File tree

25 files changed

+55
-53
lines changed

25 files changed

+55
-53
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
module outbound-http-to-same-app
22

3-
go 1.17
3+
go 1.20
44

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

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

9-
replace github.com/fermyon/spin/sdk/go v0.0.0 => ../../../sdk/go/
9+
replace github.com/fermyon/spin/sdk/go/v2 v2.0.0 => ../../../sdk/go/

examples/http-tinygo-outbound-http/outbound-http-to-same-app/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() {
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
module github.com/fermyon/spin/templates/spin-http-tinygo-outbound-http
22

3-
go 1.17
3+
go 1.20
44

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

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

9-
replace github.com/fermyon/spin/sdk/go v0.0.0 => ../../../sdk/go/
9+
replace github.com/fermyon/spin/sdk/go/v2 v2.0.0 => ../../../sdk/go/

examples/http-tinygo-outbound-http/tinygo-hello/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"net/http"
77
"os"
88

9-
spinhttp "github.com/fermyon/spin/sdk/go/http"
9+
spinhttp "github.com/fermyon/spin/sdk/go/v2/http"
1010
)
1111

1212
func init() {

examples/http-tinygo-router/go.mod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
module github.com/fermyon/spin/templates/spin-http-tinygo
22

3-
go 1.17
3+
go 1.20
44

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

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

9-
replace github.com/fermyon/spin/sdk/go v0.0.0 => ../../sdk/go/
9+
replace github.com/fermyon/spin/sdk/go/v2 v2.0.0 => ../../sdk/go/

examples/http-tinygo-router/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() {

examples/http-tinygo/go.mod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
module github.com/fermyon/spin/templates/spin-http-tinygo
22

3-
go 1.17
3+
go 1.20
44

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

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

9-
replace github.com/fermyon/spin/sdk/go v0.0.0 => ../../sdk/go/
9+
replace github.com/fermyon/spin/sdk/go/v2 v2.0.0 => ../../sdk/go/

examples/http-tinygo/main.go

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

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

1111
func init() {

examples/tinygo-key-value/go.mod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
module github.com/fermyon/spin/templates/spin-http-tinygo-key-value
22

3-
go 1.17
3+
go 1.20
44

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

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

9-
replace github.com/fermyon/spin/sdk/go v0.0.0 => ../../sdk/go/
9+
replace github.com/fermyon/spin/sdk/go/v2 v2.0.0 => ../../sdk/go/

examples/tinygo-key-value/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"io"
55
"net/http"
66

7-
spin_http "github.com/fermyon/spin/sdk/go/http"
8-
"github.com/fermyon/spin/sdk/go/kv"
7+
spin_http "github.com/fermyon/spin/sdk/go/v2/http"
8+
"github.com/fermyon/spin/sdk/go/v2/kv"
99
)
1010

1111
func init() {

0 commit comments

Comments
 (0)