From 49c373afc6e8f042f774c125866eccb95e837e88 Mon Sep 17 00:00:00 2001
From: Andrew Steurer <94206073+asteurer@users.noreply.github.com>
Date: Tue, 17 Feb 2026 20:53:57 -0600
Subject: [PATCH] fix: making go-pkg its own module
Signed-off-by: Andrew Steurer <94206073+asteurer@users.noreply.github.com>
---
docs/pkg/index.html | 10 ++++++++++
go.mod | 2 +-
{pkg/wit => wit}/async/async.go | 0
{pkg/wit => wit}/runtime/runtime.go | 0
{pkg/wit => wit}/types/future.go | 0
{pkg/wit => wit}/types/option.go | 0
{pkg/wit => wit}/types/result.go | 0
{pkg/wit => wit}/types/stream.go | 0
{pkg/wit => wit}/types/tuple.go | 0
{pkg/wit => wit}/types/unit.go | 0
10 files changed, 11 insertions(+), 1 deletion(-)
create mode 100644 docs/pkg/index.html
rename {pkg/wit => wit}/async/async.go (100%)
rename {pkg/wit => wit}/runtime/runtime.go (100%)
rename {pkg/wit => wit}/types/future.go (100%)
rename {pkg/wit => wit}/types/option.go (100%)
rename {pkg/wit => wit}/types/result.go (100%)
rename {pkg/wit => wit}/types/stream.go (100%)
rename {pkg/wit => wit}/types/tuple.go (100%)
rename {pkg/wit => wit}/types/unit.go (100%)
diff --git a/docs/pkg/index.html b/docs/pkg/index.html
new file mode 100644
index 0000000..d55a084
--- /dev/null
+++ b/docs/pkg/index.html
@@ -0,0 +1,10 @@
+
+
+ go.bytecodealliance.org/pkg
+
+
+
+
+ Redirecting to documentation…
+
+
diff --git a/go.mod b/go.mod
index 141681c..a01305e 100644
--- a/go.mod
+++ b/go.mod
@@ -1,3 +1,3 @@
-module go.bytecodealliance.org
+module go.bytecodealliance.org/pkg
go 1.25
diff --git a/pkg/wit/async/async.go b/wit/async/async.go
similarity index 100%
rename from pkg/wit/async/async.go
rename to wit/async/async.go
diff --git a/pkg/wit/runtime/runtime.go b/wit/runtime/runtime.go
similarity index 100%
rename from pkg/wit/runtime/runtime.go
rename to wit/runtime/runtime.go
diff --git a/pkg/wit/types/future.go b/wit/types/future.go
similarity index 100%
rename from pkg/wit/types/future.go
rename to wit/types/future.go
diff --git a/pkg/wit/types/option.go b/wit/types/option.go
similarity index 100%
rename from pkg/wit/types/option.go
rename to wit/types/option.go
diff --git a/pkg/wit/types/result.go b/wit/types/result.go
similarity index 100%
rename from pkg/wit/types/result.go
rename to wit/types/result.go
diff --git a/pkg/wit/types/stream.go b/wit/types/stream.go
similarity index 100%
rename from pkg/wit/types/stream.go
rename to wit/types/stream.go
diff --git a/pkg/wit/types/tuple.go b/wit/types/tuple.go
similarity index 100%
rename from pkg/wit/types/tuple.go
rename to wit/types/tuple.go
diff --git a/pkg/wit/types/unit.go b/wit/types/unit.go
similarity index 100%
rename from pkg/wit/types/unit.go
rename to wit/types/unit.go