Skip to content

Commit 2069173

Browse files
author
Joonas Bergius
committed
chore(examples): Switch http-server component example to Go 1.24
Signed-off-by: Joonas Bergius <[email protected]>
1 parent b67ff57 commit 2069173

File tree

4 files changed

+8
-11
lines changed

4 files changed

+8
-11
lines changed

examples/component/http-server/go.mod

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/wasmCloud/go/examples/component/http-server
22

3-
go 1.23.0
3+
go 1.24
44

55
require (
66
github.com/stretchr/testify v1.10.0
@@ -35,3 +35,8 @@ require (
3535

3636
// NOTE(lxf): Remove this line if running outside of wasmCloud/go repository
3737
replace go.wasmcloud.dev/component => ../../../component
38+
39+
tool (
40+
go.bytecodealliance.org/cmd/wit-bindgen-go
41+
go.wasmcloud.dev/wadge/cmd/wadge-bindgen-go
42+
)

examples/component/http-server/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//go:generate go run go.bytecodealliance.org/cmd/wit-bindgen-go generate --world example --out gen ./wit
1+
//go:generate go tool wit-bindgen-go generate --world example --out gen ./wit
22

33
package main
44

examples/component/http-server/main_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//go:generate go run go.wasmcloud.dev/wadge/cmd/wadge-bindgen-go -test
1+
//go:generate go tool wadge-bindgen-go -test
22

33
package main
44

examples/component/http-server/tools.go

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)