Skip to content

Commit 8786352

Browse files
committed
feat(go): creating remote package for reusable bindings
Signed-off-by: Andrew Steurer <94206073+asteurer@users.noreply.github.com>
1 parent 88533c1 commit 8786352

File tree

9 files changed

+69
-89
lines changed

9 files changed

+69
-89
lines changed

crates/go/src/lib.rs

Lines changed: 58 additions & 84 deletions
Large diffs are not rendered by default.

crates/go/src/package/go.mod

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module github.com/bytecodealliance/wit-bindgen
2+
3+
go 1.25.5

crates/go/src/wit_async.go renamed to crates/go/src/package/wit_async/wit_async.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import (
44
"fmt"
55
"runtime"
66
"unsafe"
7-
"wit_component/wit_runtime"
7+
8+
"github.com/bytecodealliance/wit-bindgen/wit_runtime"
89
)
910

1011
const EVENT_NONE uint32 = 0
File renamed without changes.

crates/go/src/wit_future.go renamed to crates/go/src/package/wit_types/wit_future.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ package wit_types
33
import (
44
"runtime"
55
"unsafe"
6-
"wit_component/wit_async"
7-
"wit_component/wit_runtime"
6+
7+
"github.com/bytecodealliance/wit-bindgen/wit_async"
8+
"github.com/bytecodealliance/wit-bindgen/wit_runtime"
89
)
910

1011
type FutureVtable[T any] struct {
File renamed without changes.
File renamed without changes.

crates/go/src/wit_stream.go renamed to crates/go/src/package/wit_types/wit_stream.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ package wit_types
33
import (
44
"runtime"
55
"unsafe"
6-
"wit_component/wit_async"
7-
"wit_component/wit_runtime"
6+
7+
"github.com/bytecodealliance/wit-bindgen/wit_async"
8+
"github.com/bytecodealliance/wit-bindgen/wit_runtime"
89
)
910

1011
type StreamVtable[T any] struct {
File renamed without changes.

0 commit comments

Comments
 (0)