repo stringlengths 6 47 | file_url stringlengths 77 269 | file_path stringlengths 5 186 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-07 08:35:43 2026-01-07 08:55:24 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/tests/generated/wasi/sockets/v0.2.0/udp/udp.wit.go | tests/generated/wasi/sockets/v0.2.0/udp/udp.wit.go | // Code generated by wit-bindgen-go. DO NOT EDIT.
// Package udp represents the imported interface "wasi:sockets/udp@0.2.0".
package udp
import (
"go.bytecodealliance.org/cm"
"tests/generated/wasi/io/v0.2.0/poll"
"tests/generated/wasi/sockets/v0.2.0/network"
)
// Pollable represents the imported type alias "wasi:... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/tests/generated/wasi/sockets/v0.2.0/ip-name-lookup/abi.go | tests/generated/wasi/sockets/v0.2.0/ip-name-lookup/abi.go | // Code generated by wit-bindgen-go. DO NOT EDIT.
package ipnamelookup
import (
"go.bytecodealliance.org/cm"
"unsafe"
)
// OptionIPAddressShape is used for storage in variant or result types.
type OptionIPAddressShape struct {
_ cm.HostLayout
shape [unsafe.Sizeof(cm.Option[IPAddress]{})]byte
}
| go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/tests/generated/wasi/sockets/v0.2.0/ip-name-lookup/ip-name-lookup.wasm.go | tests/generated/wasi/sockets/v0.2.0/ip-name-lookup/ip-name-lookup.wasm.go | // Code generated by wit-bindgen-go. DO NOT EDIT.
package ipnamelookup
import (
"go.bytecodealliance.org/cm"
)
// This file contains wasmimport and wasmexport declarations for "wasi:sockets@0.2.0".
//go:wasmimport wasi:sockets/ip-name-lookup@0.2.0 [resource-drop]resolve-address-stream
//go:noescape
func wasmimport... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/tests/generated/wasi/sockets/v0.2.0/ip-name-lookup/ip-name-lookup.wit.go | tests/generated/wasi/sockets/v0.2.0/ip-name-lookup/ip-name-lookup.wit.go | // Code generated by wit-bindgen-go. DO NOT EDIT.
// Package ipnamelookup represents the imported interface "wasi:sockets/ip-name-lookup@0.2.0".
package ipnamelookup
import (
"go.bytecodealliance.org/cm"
"tests/generated/wasi/io/v0.2.0/poll"
"tests/generated/wasi/sockets/v0.2.0/network"
)
// Pollable represents t... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/tests/generated/wasi/sockets/v0.2.0/udp-create-socket/udp-create-socket.wasm.go | tests/generated/wasi/sockets/v0.2.0/udp-create-socket/udp-create-socket.wasm.go | // Code generated by wit-bindgen-go. DO NOT EDIT.
package udpcreatesocket
import (
"go.bytecodealliance.org/cm"
)
// This file contains wasmimport and wasmexport declarations for "wasi:sockets@0.2.0".
//go:wasmimport wasi:sockets/udp-create-socket@0.2.0 create-udp-socket
//go:noescape
func wasmimport_CreateUDPSock... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/tests/generated/wasi/sockets/v0.2.0/udp-create-socket/udp-create-socket.wit.go | tests/generated/wasi/sockets/v0.2.0/udp-create-socket/udp-create-socket.wit.go | // Code generated by wit-bindgen-go. DO NOT EDIT.
// Package udpcreatesocket represents the imported interface "wasi:sockets/udp-create-socket@0.2.0".
package udpcreatesocket
import (
"go.bytecodealliance.org/cm"
"tests/generated/wasi/sockets/v0.2.0/network"
"tests/generated/wasi/sockets/v0.2.0/udp"
)
// Network ... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/tests/generated/wasi/sockets/v0.2.0/network/abi.go | tests/generated/wasi/sockets/v0.2.0/network/abi.go | // Code generated by wit-bindgen-go. DO NOT EDIT.
package network
import (
"go.bytecodealliance.org/cm"
"unsafe"
)
// IPv6AddressShape is used for storage in variant or result types.
type IPv6AddressShape struct {
_ cm.HostLayout
shape [unsafe.Sizeof(IPv6Address{})]byte
}
// IPv6SocketAddressShape is used f... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/tests/generated/wasi/sockets/v0.2.0/network/network.wasm.go | tests/generated/wasi/sockets/v0.2.0/network/network.wasm.go | // Code generated by wit-bindgen-go. DO NOT EDIT.
package network
// This file contains wasmimport and wasmexport declarations for "wasi:sockets@0.2.0".
//go:wasmimport wasi:sockets/network@0.2.0 [resource-drop]network
//go:noescape
func wasmimport_NetworkResourceDrop(self0 uint32)
| go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/tests/generated/wasi/sockets/v0.2.0/network/network.wit.go | tests/generated/wasi/sockets/v0.2.0/network/network.wit.go | // Code generated by wit-bindgen-go. DO NOT EDIT.
// Package network represents the imported interface "wasi:sockets/network@0.2.0".
package network
import (
"go.bytecodealliance.org/cm"
)
// Network represents the imported resource "wasi:sockets/network@0.2.0#network".
//
// An opaque resource that represents acce... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/tests/generated/wasi/sockets/v0.2.0/instance-network/instance-network.wasm.go | tests/generated/wasi/sockets/v0.2.0/instance-network/instance-network.wasm.go | // Code generated by wit-bindgen-go. DO NOT EDIT.
package instancenetwork
// This file contains wasmimport and wasmexport declarations for "wasi:sockets@0.2.0".
//go:wasmimport wasi:sockets/instance-network@0.2.0 instance-network
//go:noescape
func wasmimport_InstanceNetwork() (result0 uint32)
| go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/tests/generated/wasi/sockets/v0.2.0/instance-network/instance-network.wit.go | tests/generated/wasi/sockets/v0.2.0/instance-network/instance-network.wit.go | // Code generated by wit-bindgen-go. DO NOT EDIT.
// Package instancenetwork represents the imported interface "wasi:sockets/instance-network@0.2.0".
//
// This interface provides a value-export of the default network handle..
package instancenetwork
import (
"go.bytecodealliance.org/cm"
"tests/generated/wasi/socke... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/tests/generated/wasi/clocks/v0.2.0/wall-clock/wall-clock.wit.go | tests/generated/wasi/clocks/v0.2.0/wall-clock/wall-clock.wit.go | // Code generated by wit-bindgen-go. DO NOT EDIT.
// Package wallclock represents the imported interface "wasi:clocks/wall-clock@0.2.0".
//
// WASI Wall Clock is a clock API intended to let users query the current
// time. The name "wall" makes an analogy to a "clock on the wall", which
// is not necessarily monotonic... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/tests/generated/wasi/clocks/v0.2.0/wall-clock/wall-clock.wasm.go | tests/generated/wasi/clocks/v0.2.0/wall-clock/wall-clock.wasm.go | // Code generated by wit-bindgen-go. DO NOT EDIT.
package wallclock
// This file contains wasmimport and wasmexport declarations for "wasi:clocks@0.2.0".
//go:wasmimport wasi:clocks/wall-clock@0.2.0 now
//go:noescape
func wasmimport_Now(result *DateTime)
//go:wasmimport wasi:clocks/wall-clock@0.2.0 resolution
//go:... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/tests/generated/wasi/clocks/v0.2.0/monotonic-clock/monotonic-clock.wit.go | tests/generated/wasi/clocks/v0.2.0/monotonic-clock/monotonic-clock.wit.go | // Code generated by wit-bindgen-go. DO NOT EDIT.
// Package monotonicclock represents the imported interface "wasi:clocks/monotonic-clock@0.2.0".
//
// WASI Monotonic Clock is a clock API intended to let users measure elapsed
// time.
//
// It is intended to be portable at least between Unix-family platforms and
// W... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/tests/generated/wasi/clocks/v0.2.0/monotonic-clock/monotonic-clock.wasm.go | tests/generated/wasi/clocks/v0.2.0/monotonic-clock/monotonic-clock.wasm.go | // Code generated by wit-bindgen-go. DO NOT EDIT.
package monotonicclock
// This file contains wasmimport and wasmexport declarations for "wasi:clocks@0.2.0".
//go:wasmimport wasi:clocks/monotonic-clock@0.2.0 now
//go:noescape
func wasmimport_Now() (result0 uint64)
//go:wasmimport wasi:clocks/monotonic-clock@0.2.0 ... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/tests/generated/wasi/filesystem/v0.2.0/types/abi.go | tests/generated/wasi/filesystem/v0.2.0/types/abi.go | // Code generated by wit-bindgen-go. DO NOT EDIT.
package types
import (
"go.bytecodealliance.org/cm"
wallclock "tests/generated/wasi/clocks/v0.2.0/wall-clock"
"unsafe"
)
// MetadataHashValueShape is used for storage in variant or result types.
type MetadataHashValueShape struct {
_ cm.HostLayout
shape [uns... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/tests/generated/wasi/filesystem/v0.2.0/types/types.wasm.go | tests/generated/wasi/filesystem/v0.2.0/types/types.wasm.go | // Code generated by wit-bindgen-go. DO NOT EDIT.
package types
import (
"go.bytecodealliance.org/cm"
)
// This file contains wasmimport and wasmexport declarations for "wasi:filesystem@0.2.0".
//go:wasmimport wasi:filesystem/types@0.2.0 [resource-drop]descriptor
//go:noescape
func wasmimport_DescriptorResourceDro... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/tests/generated/wasi/filesystem/v0.2.0/types/types.wit.go | tests/generated/wasi/filesystem/v0.2.0/types/types.wit.go | // Code generated by wit-bindgen-go. DO NOT EDIT.
// Package types represents the imported interface "wasi:filesystem/types@0.2.0".
//
// WASI filesystem is a filesystem API primarily intended to let users run WASI
// programs that access their files on their existing filesystems, without
// significant overhead.
//
/... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | true |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/tests/generated/wasi/filesystem/v0.2.0/preopens/preopens.wasm.go | tests/generated/wasi/filesystem/v0.2.0/preopens/preopens.wasm.go | // Code generated by wit-bindgen-go. DO NOT EDIT.
package preopens
import (
"go.bytecodealliance.org/cm"
)
// This file contains wasmimport and wasmexport declarations for "wasi:filesystem@0.2.0".
//go:wasmimport wasi:filesystem/preopens@0.2.0 get-directories
//go:noescape
func wasmimport_GetDirectories(result *cm... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/tests/generated/wasi/filesystem/v0.2.0/preopens/preopens.wit.go | tests/generated/wasi/filesystem/v0.2.0/preopens/preopens.wit.go | // Code generated by wit-bindgen-go. DO NOT EDIT.
// Package preopens represents the imported interface "wasi:filesystem/preopens@0.2.0".
package preopens
import (
"go.bytecodealliance.org/cm"
"tests/generated/wasi/filesystem/v0.2.0/types"
)
// Descriptor represents the imported type alias "wasi:filesystem/preopen... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/tests/generated/wasi/cli/v0.2.0/stderr/stderr.wit.go | tests/generated/wasi/cli/v0.2.0/stderr/stderr.wit.go | // Code generated by wit-bindgen-go. DO NOT EDIT.
// Package stderr represents the imported interface "wasi:cli/stderr@0.2.0".
package stderr
import (
"go.bytecodealliance.org/cm"
"tests/generated/wasi/io/v0.2.0/streams"
)
// OutputStream represents the imported type alias "wasi:cli/stderr@0.2.0#output-stream".
//... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/tests/generated/wasi/cli/v0.2.0/stderr/stderr.wasm.go | tests/generated/wasi/cli/v0.2.0/stderr/stderr.wasm.go | // Code generated by wit-bindgen-go. DO NOT EDIT.
package stderr
// This file contains wasmimport and wasmexport declarations for "wasi:cli@0.2.0".
//go:wasmimport wasi:cli/stderr@0.2.0 get-stderr
//go:noescape
func wasmimport_GetStderr() (result0 uint32)
| go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/tests/generated/wasi/cli/v0.2.0/terminal-input/terminal-input.wasm.go | tests/generated/wasi/cli/v0.2.0/terminal-input/terminal-input.wasm.go | // Code generated by wit-bindgen-go. DO NOT EDIT.
package terminalinput
// This file contains wasmimport and wasmexport declarations for "wasi:cli@0.2.0".
//go:wasmimport wasi:cli/terminal-input@0.2.0 [resource-drop]terminal-input
//go:noescape
func wasmimport_TerminalInputResourceDrop(self0 uint32)
| go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/tests/generated/wasi/cli/v0.2.0/terminal-input/terminal-input.wit.go | tests/generated/wasi/cli/v0.2.0/terminal-input/terminal-input.wit.go | // Code generated by wit-bindgen-go. DO NOT EDIT.
// Package terminalinput represents the imported interface "wasi:cli/terminal-input@0.2.0".
//
// Terminal input.
//
// In the future, this may include functions for disabling echoing,
// disabling input buffering so that keyboard events are sent through
// immediately... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/tests/generated/wasi/cli/v0.2.0/exit/exit.wit.go | tests/generated/wasi/cli/v0.2.0/exit/exit.wit.go | // Code generated by wit-bindgen-go. DO NOT EDIT.
// Package exit represents the imported interface "wasi:cli/exit@0.2.0".
package exit
import (
"go.bytecodealliance.org/cm"
)
// Exit represents the imported function "exit".
//
// Exit the current instance and any linked instances.
//
// exit: func(status: result)
... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/tests/generated/wasi/cli/v0.2.0/exit/exit.wasm.go | tests/generated/wasi/cli/v0.2.0/exit/exit.wasm.go | // Code generated by wit-bindgen-go. DO NOT EDIT.
package exit
// This file contains wasmimport and wasmexport declarations for "wasi:cli@0.2.0".
//go:wasmimport wasi:cli/exit@0.2.0 exit
//go:noescape
func wasmimport_Exit(status0 uint32)
| go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/tests/generated/wasi/cli/v0.2.0/terminal-output/terminal-output.wit.go | tests/generated/wasi/cli/v0.2.0/terminal-output/terminal-output.wit.go | // Code generated by wit-bindgen-go. DO NOT EDIT.
// Package terminaloutput represents the imported interface "wasi:cli/terminal-output@0.2.0".
//
// Terminal output.
//
// In the future, this may include functions for querying the terminal
// size, being notified of terminal size changes, querying supported
// featur... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/tests/generated/wasi/cli/v0.2.0/terminal-output/terminal-output.wasm.go | tests/generated/wasi/cli/v0.2.0/terminal-output/terminal-output.wasm.go | // Code generated by wit-bindgen-go. DO NOT EDIT.
package terminaloutput
// This file contains wasmimport and wasmexport declarations for "wasi:cli@0.2.0".
//go:wasmimport wasi:cli/terminal-output@0.2.0 [resource-drop]terminal-output
//go:noescape
func wasmimport_TerminalOutputResourceDrop(self0 uint32)
| go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/tests/generated/wasi/cli/v0.2.0/command/command.wit.go | tests/generated/wasi/cli/v0.2.0/command/command.wit.go | // Code generated by wit-bindgen-go. DO NOT EDIT.
// Package command represents the world "wasi:cli/command@0.2.0".
package command
| go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/tests/generated/wasi/cli/v0.2.0/terminal-stderr/terminal-stderr.wit.go | tests/generated/wasi/cli/v0.2.0/terminal-stderr/terminal-stderr.wit.go | // Code generated by wit-bindgen-go. DO NOT EDIT.
// Package terminalstderr represents the imported interface "wasi:cli/terminal-stderr@0.2.0".
//
// An interface providing an optional `terminal-output` for stderr as a
// link-time authority.
package terminalstderr
import (
"go.bytecodealliance.org/cm"
terminaloutp... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/tests/generated/wasi/cli/v0.2.0/terminal-stderr/terminal-stderr.wasm.go | tests/generated/wasi/cli/v0.2.0/terminal-stderr/terminal-stderr.wasm.go | // Code generated by wit-bindgen-go. DO NOT EDIT.
package terminalstderr
import (
"go.bytecodealliance.org/cm"
)
// This file contains wasmimport and wasmexport declarations for "wasi:cli@0.2.0".
//go:wasmimport wasi:cli/terminal-stderr@0.2.0 get-terminal-stderr
//go:noescape
func wasmimport_GetTerminalStderr(resu... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/tests/generated/wasi/cli/v0.2.0/stdout/stdout.wasm.go | tests/generated/wasi/cli/v0.2.0/stdout/stdout.wasm.go | // Code generated by wit-bindgen-go. DO NOT EDIT.
package stdout
// This file contains wasmimport and wasmexport declarations for "wasi:cli@0.2.0".
//go:wasmimport wasi:cli/stdout@0.2.0 get-stdout
//go:noescape
func wasmimport_GetStdout() (result0 uint32)
| go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/tests/generated/wasi/cli/v0.2.0/stdout/stdout.wit.go | tests/generated/wasi/cli/v0.2.0/stdout/stdout.wit.go | // Code generated by wit-bindgen-go. DO NOT EDIT.
// Package stdout represents the imported interface "wasi:cli/stdout@0.2.0".
package stdout
import (
"go.bytecodealliance.org/cm"
"tests/generated/wasi/io/v0.2.0/streams"
)
// OutputStream represents the imported type alias "wasi:cli/stdout@0.2.0#output-stream".
//... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/tests/generated/wasi/cli/v0.2.0/run/run.wasm.go | tests/generated/wasi/cli/v0.2.0/run/run.wasm.go | // Code generated by wit-bindgen-go. DO NOT EDIT.
package run
// This file contains wasmimport and wasmexport declarations for "wasi:cli@0.2.0".
//go:wasmexport wasi:cli/run@0.2.0#run
//export wasi:cli/run@0.2.0#run
func wasmexport_Run() (result0 uint32) {
result := Exports.Run()
result0 = (uint32)(result)
return... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/tests/generated/wasi/cli/v0.2.0/run/run.exports.go | tests/generated/wasi/cli/v0.2.0/run/run.exports.go | // Code generated by wit-bindgen-go. DO NOT EDIT.
package run
import (
"go.bytecodealliance.org/cm"
)
// Exports represents the caller-defined exports from "wasi:cli/run@0.2.0".
var Exports struct {
// Run represents the caller-defined, exported function "run".
//
// Run the program.
//
// run: func() -> resul... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/tests/generated/wasi/cli/v0.2.0/run/run.wit.go | tests/generated/wasi/cli/v0.2.0/run/run.wit.go | // Code generated by wit-bindgen-go. DO NOT EDIT.
// Package run represents the exported interface "wasi:cli/run@0.2.0".
package run
| go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/tests/generated/wasi/cli/v0.2.0/environment/environment.wit.go | tests/generated/wasi/cli/v0.2.0/environment/environment.wit.go | // Code generated by wit-bindgen-go. DO NOT EDIT.
// Package environment represents the imported interface "wasi:cli/environment@0.2.0".
package environment
import (
"go.bytecodealliance.org/cm"
)
// GetEnvironment represents the imported function "get-environment".
//
// Get the POSIX-style environment variables.
... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/tests/generated/wasi/cli/v0.2.0/environment/environment.wasm.go | tests/generated/wasi/cli/v0.2.0/environment/environment.wasm.go | // Code generated by wit-bindgen-go. DO NOT EDIT.
package environment
import (
"go.bytecodealliance.org/cm"
)
// This file contains wasmimport and wasmexport declarations for "wasi:cli@0.2.0".
//go:wasmimport wasi:cli/environment@0.2.0 get-environment
//go:noescape
func wasmimport_GetEnvironment(result *cm.List[[2... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/tests/generated/wasi/cli/v0.2.0/stdin/stdin.wit.go | tests/generated/wasi/cli/v0.2.0/stdin/stdin.wit.go | // Code generated by wit-bindgen-go. DO NOT EDIT.
// Package stdin represents the imported interface "wasi:cli/stdin@0.2.0".
package stdin
import (
"go.bytecodealliance.org/cm"
"tests/generated/wasi/io/v0.2.0/streams"
)
// InputStream represents the imported type alias "wasi:cli/stdin@0.2.0#input-stream".
//
// Se... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/tests/generated/wasi/cli/v0.2.0/stdin/stdin.wasm.go | tests/generated/wasi/cli/v0.2.0/stdin/stdin.wasm.go | // Code generated by wit-bindgen-go. DO NOT EDIT.
package stdin
// This file contains wasmimport and wasmexport declarations for "wasi:cli@0.2.0".
//go:wasmimport wasi:cli/stdin@0.2.0 get-stdin
//go:noescape
func wasmimport_GetStdin() (result0 uint32)
| go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/tests/generated/wasi/cli/v0.2.0/terminal-stdout/terminal-stdout.wit.go | tests/generated/wasi/cli/v0.2.0/terminal-stdout/terminal-stdout.wit.go | // Code generated by wit-bindgen-go. DO NOT EDIT.
// Package terminalstdout represents the imported interface "wasi:cli/terminal-stdout@0.2.0".
//
// An interface providing an optional `terminal-output` for stdout as a
// link-time authority.
package terminalstdout
import (
"go.bytecodealliance.org/cm"
terminaloutp... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/tests/generated/wasi/cli/v0.2.0/terminal-stdout/terminal-stdout.wasm.go | tests/generated/wasi/cli/v0.2.0/terminal-stdout/terminal-stdout.wasm.go | // Code generated by wit-bindgen-go. DO NOT EDIT.
package terminalstdout
import (
"go.bytecodealliance.org/cm"
)
// This file contains wasmimport and wasmexport declarations for "wasi:cli@0.2.0".
//go:wasmimport wasi:cli/terminal-stdout@0.2.0 get-terminal-stdout
//go:noescape
func wasmimport_GetTerminalStdout(resu... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/tests/generated/wasi/cli/v0.2.0/terminal-stdin/terminal-stdin.wasm.go | tests/generated/wasi/cli/v0.2.0/terminal-stdin/terminal-stdin.wasm.go | // Code generated by wit-bindgen-go. DO NOT EDIT.
package terminalstdin
import (
"go.bytecodealliance.org/cm"
)
// This file contains wasmimport and wasmexport declarations for "wasi:cli@0.2.0".
//go:wasmimport wasi:cli/terminal-stdin@0.2.0 get-terminal-stdin
//go:noescape
func wasmimport_GetTerminalStdin(result *... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/tests/generated/wasi/cli/v0.2.0/terminal-stdin/terminal-stdin.wit.go | tests/generated/wasi/cli/v0.2.0/terminal-stdin/terminal-stdin.wit.go | // Code generated by wit-bindgen-go. DO NOT EDIT.
// Package terminalstdin represents the imported interface "wasi:cli/terminal-stdin@0.2.0".
//
// An interface providing an optional `terminal-input` for stdin as a
// link-time authority.
package terminalstdin
import (
"go.bytecodealliance.org/cm"
terminalinput "te... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/tests/generated/wasi/io/v0.2.0/error/error.wasm.go | tests/generated/wasi/io/v0.2.0/error/error.wasm.go | // Code generated by wit-bindgen-go. DO NOT EDIT.
package ioerror
// This file contains wasmimport and wasmexport declarations for "wasi:io@0.2.0".
//go:wasmimport wasi:io/error@0.2.0 [resource-drop]error
//go:noescape
func wasmimport_ErrorResourceDrop(self0 uint32)
//go:wasmimport wasi:io/error@0.2.0 [method]error... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/tests/generated/wasi/io/v0.2.0/error/error.wit.go | tests/generated/wasi/io/v0.2.0/error/error.wit.go | // Code generated by wit-bindgen-go. DO NOT EDIT.
// Package ioerror represents the imported interface "wasi:io/error@0.2.0".
package ioerror
import (
"go.bytecodealliance.org/cm"
)
// Error represents the imported resource "wasi:io/error@0.2.0#error".
//
// A resource which represents some error information.
//
//... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/tests/generated/wasi/io/v0.2.0/poll/poll.wasm.go | tests/generated/wasi/io/v0.2.0/poll/poll.wasm.go | // Code generated by wit-bindgen-go. DO NOT EDIT.
package poll
import (
"go.bytecodealliance.org/cm"
)
// This file contains wasmimport and wasmexport declarations for "wasi:io@0.2.0".
//go:wasmimport wasi:io/poll@0.2.0 [resource-drop]pollable
//go:noescape
func wasmimport_PollableResourceDrop(self0 uint32)
//go:... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/tests/generated/wasi/io/v0.2.0/poll/poll.wit.go | tests/generated/wasi/io/v0.2.0/poll/poll.wit.go | // Code generated by wit-bindgen-go. DO NOT EDIT.
// Package poll represents the imported interface "wasi:io/poll@0.2.0".
//
// A poll API intended to let users wait for I/O events on multiple handles
// at once.
package poll
import (
"go.bytecodealliance.org/cm"
)
// Pollable represents the imported resource "wasi... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/tests/generated/wasi/io/v0.2.0/streams/streams.wit.go | tests/generated/wasi/io/v0.2.0/streams/streams.wit.go | // Code generated by wit-bindgen-go. DO NOT EDIT.
// Package streams represents the imported interface "wasi:io/streams@0.2.0".
//
// WASI I/O is an I/O abstraction API which is currently focused on providing
// stream types.
//
// In the future, the component model is expected to add built-in stream types;
// when it... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/tests/generated/wasi/io/v0.2.0/streams/streams.wasm.go | tests/generated/wasi/io/v0.2.0/streams/streams.wasm.go | // Code generated by wit-bindgen-go. DO NOT EDIT.
package streams
import (
"go.bytecodealliance.org/cm"
)
// This file contains wasmimport and wasmexport declarations for "wasi:io@0.2.0".
//go:wasmimport wasi:io/streams@0.2.0 [resource-drop]input-stream
//go:noescape
func wasmimport_InputStreamResourceDrop(self0 u... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/tests/generated/wasi/random/v0.2.0/insecure/insecure.wasm.go | tests/generated/wasi/random/v0.2.0/insecure/insecure.wasm.go | // Code generated by wit-bindgen-go. DO NOT EDIT.
package insecure
import (
"go.bytecodealliance.org/cm"
)
// This file contains wasmimport and wasmexport declarations for "wasi:random@0.2.0".
//go:wasmimport wasi:random/insecure@0.2.0 get-insecure-random-bytes
//go:noescape
func wasmimport_GetInsecureRandomBytes(... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/tests/generated/wasi/random/v0.2.0/insecure/insecure.wit.go | tests/generated/wasi/random/v0.2.0/insecure/insecure.wit.go | // Code generated by wit-bindgen-go. DO NOT EDIT.
// Package insecure represents the imported interface "wasi:random/insecure@0.2.0".
//
// The insecure interface for insecure pseudo-random numbers.
//
// It is intended to be portable at least between Unix-family platforms and
// Windows.
package insecure
import (
"... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/tests/generated/wasi/random/v0.2.0/insecure-seed/insecure-seed.wasm.go | tests/generated/wasi/random/v0.2.0/insecure-seed/insecure-seed.wasm.go | // Code generated by wit-bindgen-go. DO NOT EDIT.
package insecureseed
// This file contains wasmimport and wasmexport declarations for "wasi:random@0.2.0".
//go:wasmimport wasi:random/insecure-seed@0.2.0 insecure-seed
//go:noescape
func wasmimport_InsecureSeed(result *[2]uint64)
| go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/tests/generated/wasi/random/v0.2.0/insecure-seed/insecure-seed.wit.go | tests/generated/wasi/random/v0.2.0/insecure-seed/insecure-seed.wit.go | // Code generated by wit-bindgen-go. DO NOT EDIT.
// Package insecureseed represents the imported interface "wasi:random/insecure-seed@0.2.0".
//
// The insecure-seed interface for seeding hash-map DoS resistance.
//
// It is intended to be portable at least between Unix-family platforms and
// Windows.
package insecu... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/tests/generated/wasi/random/v0.2.0/random/random.wasm.go | tests/generated/wasi/random/v0.2.0/random/random.wasm.go | // Code generated by wit-bindgen-go. DO NOT EDIT.
package random
import (
"go.bytecodealliance.org/cm"
)
// This file contains wasmimport and wasmexport declarations for "wasi:random@0.2.0".
//go:wasmimport wasi:random/random@0.2.0 get-random-bytes
//go:noescape
func wasmimport_GetRandomBytes(len0 uint64, result *... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/tests/generated/wasi/random/v0.2.0/random/random.wit.go | tests/generated/wasi/random/v0.2.0/random/random.wit.go | // Code generated by wit-bindgen-go. DO NOT EDIT.
// Package random represents the imported interface "wasi:random/random@0.2.0".
//
// WASI Random is a random data API.
//
// It is intended to be portable at least between Unix-family platforms and
// Windows.
package random
import (
"go.bytecodealliance.org/cm"
)
... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/cm/abi.go | cm/abi.go | package cm
import "unsafe"
// AnyInteger is a type constraint for any integer type.
type AnyInteger interface {
~int | ~uint | ~uintptr | ~int8 | ~uint8 | ~int16 | ~uint16 | ~int32 | ~uint32 | ~int64 | ~uint64
}
// Reinterpret reinterprets the bits of type From into type T.
// Will panic if the size of From is smal... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/cm/future.go | cm/future.go | package cm
// Future represents the Component Model [future] type.
// A future is a special case of stream. In non-error cases,
// a future delivers exactly one value before being automatically closed.
//
// [future]: https://github.com/WebAssembly/component-model/blob/main/design/mvp/Explainer.md#asynchronous-value-t... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/cm/tuple_test.go | cm/tuple_test.go | package cm
import (
"math"
"testing"
)
func TestTuple(t *testing.T) {
var HL HostLayout
_ = Tuple[string, bool]{HL, "hello", false}
_ = Tuple3[string, bool, uint8]{HL, "hello", false, 1}
_ = Tuple4[string, bool, uint8, uint16]{HL, "hello", false, 1, 32000}
_ = Tuple5[string, bool, uint8, uint16, uint32]{HL, "h... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/cm/stream.go | cm/stream.go | package cm
// Stream represents the Component Model [stream] type.
// A stream is a special case of stream. In non-error cases,
// a stream delivers exactly one value before being automatically closed.
//
// [stream]: https://github.com/WebAssembly/component-model/blob/main/design/mvp/Explainer.md#asynchronous-value-t... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/cm/tuple.go | cm/tuple.go | package cm
// Tuple represents a [Component Model tuple] with 2 fields.
//
// [Component Model tuple]: https://component-model.bytecodealliance.org/design/wit.html#tuples
type Tuple[T0, T1 any] struct {
_ HostLayout
F0 T0
F1 T1
}
// Tuple3 represents a [Component Model tuple] with 3 fields.
//
// [Component Model... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/cm/error.go | cm/error.go | package cm
import "unsafe"
// ErrorContext represents the Component Model [error-context] type,
// an immutable, non-deterministic, host-defined value meant to aid in debugging.
//
// [error-context]: https://github.com/WebAssembly/component-model/blob/main/design/mvp/Explainer.md#error-context-type
type ErrorContext... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/cm/option.go | cm/option.go | package cm
// Option represents a Component Model [option<T>] type.
//
// [option<T>]: https://component-model.bytecodealliance.org/design/wit.html#options
type Option[T any] struct {
_ HostLayout
option[T]
}
// None returns an [Option] representing the none case,
// equivalent to the zero value.
func None[T any]()... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/cm/list_json.go | cm/list_json.go | //go:build !module.std
package cm
// This file contains JSON-related functionality for Component Model list types.
// To avoid a cyclical dependency on package encoding/json when using this package
// in a Go or TinyGo standard library, do not include files named *_json.go.
import (
"bytes"
"encoding/json"
"unsaf... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/cm/result.go | cm/result.go | package cm
import "unsafe"
const (
// ResultOK represents the OK case of a result.
ResultOK = 0
// ResultErr represents the error case of a result.
ResultErr = 1
)
// BoolResult represents a result with no OK or error type.
// False represents the OK case and true represents the error case.
type BoolResult uint... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/cm/case_test.go | cm/case_test.go | package cm
import (
"strings"
"testing"
)
func TestCaseUnmarshaler(t *testing.T) {
tests := []struct {
name string
cases []string
}{
{"nil", nil},
{"empty slice", []string{}},
{"a b c", strings.SplitAfter("abc", "")},
{"a b c d e f g", strings.SplitAfter("abcdefg", "")},
}
for _, tt := range tests ... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/cm/result_test.go | cm/result_test.go | package cm
import (
"fmt"
"runtime"
"testing"
"unsafe"
)
var (
_ resulter[string, bool] = &Result[string, string, bool]{}
_ resulter[bool, string] = &Result[string, bool, string]{}
)
type resulter[OK, Err any] interface {
SetOK(OK)
SetErr(Err)
IsOK() bool
IsErr() bool
OK() *OK
Err() *Err
Result() (OK, E... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/cm/option_test.go | cm/option_test.go | package cm
import "testing"
func TestOption(t *testing.T) {
o1 := None[string]()
if got, want := o1.None(), true; got != want {
t.Errorf("o1.None: %t, expected %t", got, want)
}
if got, want := o1.Some(), (*string)(nil); got != want {
t.Errorf("o1.Some: %v, expected %v", got, want)
}
if got, want := o1.Valu... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/cm/error.wasm.go | cm/error.wasm.go | package cm
import "unsafe"
// msg uses unsafe.Pointer for compatibility with go1.23 and lower.
//
//go:wasmimport canon error-context.debug-message
//go:noescape
func wasmimport_errorContextDebugMessage(err uint32, msg unsafe.Pointer)
//go:wasmimport canon error-context.drop
//go:noescape
func wasmimport_errorContex... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/cm/debug_test.go | cm/debug_test.go | package cm
import (
"reflect"
"strings"
"unsafe"
)
func typeName(v any) string {
var name string
if t := reflect.TypeOf(v); t.Kind() == reflect.Ptr {
name = "*" + t.Elem().String()
} else {
name = t.String()
}
return strings.ReplaceAll(name, " ", "")
}
func sizePlusAlignOf[T any]() uintptr {
var v T
re... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/cm/hostlayout_test.go | cm/hostlayout_test.go | package cm
import (
"runtime"
"testing"
"unsafe"
)
func TestFieldAlignment(t *testing.T) {
var v1 struct {
_ HostLayout
_ bool
_ [0][7]byte
u64 uint64
}
if got, want := unsafe.Sizeof(v1), uintptr(16); got != want {
t.Errorf("unsafe.Sizeof(v1): %d, expected %d", got, want)
}
if got, want := off... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/cm/docs.go | cm/docs.go | // Package cm provides types and functions for interfacing with the WebAssembly Component Model.
//
// The types in this package (such as [List], [Option], [Result], and [Variant]) are designed to match the memory layout
// of [Component Model] types as specified in the [Canonical ABI].
//
// [Component Model]: https:/... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/cm/list_test.go | cm/list_test.go | package cm
import (
"bytes"
"testing"
)
func TestListMethods(t *testing.T) {
want := []byte("hello world")
type myList List[uint8]
l := myList(ToList(want))
got := l.Slice()
if !bytes.Equal(want, got) {
t.Errorf("got (%s) != want (%s)", string(got), string(want))
}
}
| go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/cm/list.go | cm/list.go | package cm
import (
"unsafe"
)
// List represents a Component Model list.
// The binary representation of list<T> is similar to a Go slice minus the cap field.
type List[T any] struct {
_ HostLayout
list[T]
}
// AnyList is a type constraint for generic functions that accept any [List] type.
type AnyList[T any] in... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/cm/variant_test.go | cm/variant_test.go | package cm
import (
"runtime"
"strings"
"testing"
"unsafe"
)
func TestVariantLayout(t *testing.T) {
// 8 on 64-bit, 4 on 32-bit
ptrSize := unsafe.Sizeof(uintptr(0))
tests := []struct {
name string
v VariantDebug
size uintptr
offset uintptr
}{
{"variant { string; string }", Variant[uint8, s... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/cm/variant.go | cm/variant.go | package cm
import "unsafe"
// Discriminant is the set of types that can represent the tag or discriminator of a variant.
// Use uint8 where there are 256 or fewer cases, uint16 for up to 65,536 cases, or uint32 for anything greater.
type Discriminant interface {
uint8 | uint16 | uint32
}
// Variant represents a loo... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/cm/resource.go | cm/resource.go | package cm
// Resource represents an opaque Component Model [resource handle].
// It is represented in the [Canonical ABI] as an 32-bit integer.
//
// [resource handle]: https://github.com/WebAssembly/component-model/blob/main/design/mvp/Explainer.md#handle-types
// [Canonical ABI]: https://github.com/WebAssembly/comp... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/cm/case.go | cm/case.go | package cm
// CaseUnmarshaler returns an function that can unmarshal text into
// [variant] or [enum] case T.
//
// [enum]: https://component-model.bytecodealliance.org/design/wit.html#enums
// [variant]: https://component-model.bytecodealliance.org/design/wit.html#variants
func CaseUnmarshaler[T ~uint8 | ~uint16 | ~u... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/cm/dependencies_test.go | cm/dependencies_test.go | //go:build !wasip1 && !wasip2 && !tinygo
package cm
import (
"bytes"
"os/exec"
"strings"
"testing"
)
func TestDependencies(t *testing.T) {
cmd := exec.Command("go", "list", "-f", "{{.Imports}}", "-tags", "module.std", ".")
stdout := &bytes.Buffer{}
cmd.Stdout = stdout
err := cmd.Run()
if err != nil {
t.Er... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/cm/list_json_test.go | cm/list_json_test.go | //go:build !module.std
package cm
import (
"bytes"
"encoding/json"
"errors"
"math"
"reflect"
"runtime"
"strings"
"testing"
)
func TestListMarshalJSON(t *testing.T) {
tests := []struct {
name string
w listTester
}{
{
name: "encode error",
w: listMarshalTest(``, []errorEntry{{}}, true),
}... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/cm/hostlayout.go | cm/hostlayout.go | package cm
import "structs"
// HostLayout marks a struct as using host memory layout.
// See [structs.HostLayout] in Go 1.23 or later.
type HostLayout = structs.HostLayout
| go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/cm/abi_test.go | cm/abi_test.go | package cm
import (
"math"
"testing"
)
func TestIntConversions(t *testing.T) {
for i := int8(math.MinInt8); i < math.MaxInt8; i++ {
testIntRoundTrip[uint32](t, i)
testIntRoundTrip[uint64](t, i)
}
for i := uint8(0); i < math.MaxUint8; i++ {
testIntRoundTrip[uint32](t, i)
testIntRoundTrip[uint64](t, i)
}... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/wit/flags.go | wit/flags.go | package wit
// Flags represents a WIT [flags type], stored as a bitfield.
// It implements the [Node], [ABI], and [TypeDefKind] interfaces.
//
// [flags type]: https://component-model.bytecodealliance.org/design/wit.html#flags
type Flags struct {
_typeDefKind
Flags []Flag
}
// Size returns the [ABI byte size] of [F... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/wit/abi.go | wit/abi.go | package wit
import (
"slices"
"strconv"
)
// ABI is the interface implemented by any type that can report its
// [Canonical ABI] [size], [alignment], and [flat] representation.
//
// [Canonical ABI]: https://github.com/WebAssembly/component-model/blob/main/design/mvp/CanonicalABI.md
// [size]: https://github.com/We... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/wit/future.go | wit/future.go | package wit
// Future represents a WIT [future type], expected to be part of [WASI Preview 3].
// It implements the [Node], [ABI], and [TypeDefKind] interfaces.
//
// [future type]: https://github.com/bytecodealliance/wit-bindgen/issues/270
// [WASI Preview 3]: https://bytecodealliance.org/articles/webassembly-the-upd... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/wit/function.go | wit/function.go | package wit
import (
"strings"
)
// Function represents a WIT [function].
// Functions can be freestanding, methods, constructors or static.
// It implements the [Node] and [WorldItem] interfaces.
//
// [function]: https://component-model.bytecodealliance.org/design/wit.html#functions
type Function struct {
_worldI... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/wit/testdata_test.go | wit/testdata_test.go | package wit
import (
"bytes"
"context"
"flag"
"fmt"
"os"
"strings"
"testing"
"go.bytecodealliance.org/internal/relpath"
"go.bytecodealliance.org/internal/wasmtools"
"github.com/sergi/go-diff/diffmatchpatch"
)
var (
update = flag.Bool("update", false, "update golden files")
debug = flag.Bool("debug", fa... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/wit/stream.go | wit/stream.go | package wit
// Stream represents a WIT [stream type], expected to be part of [WASI Preview 3].
// It implements the [Node], [ABI], and [TypeDefKind] interfaces.
//
// [stream type]: https://github.com/WebAssembly/WASI/blob/main/docs/WitInWasi.md#streams
// [WASI Preview 3]: https://bytecodealliance.org/articles/webass... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/wit/typedef.go | wit/typedef.go | package wit
import (
"slices"
)
// TypeDef represents a WIT type definition. A TypeDef may be named or anonymous,
// and optionally belong to a [World] or [Interface].
// It implements the [Node], [ABI], [Type], and [TypeDefKind] interfaces.
type TypeDef struct {
_type
_worldItem
Name *string
Kind Type... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/wit/tuple.go | wit/tuple.go | package wit
import (
"strconv"
)
// Tuple represents a WIT [tuple type].
// A tuple type is an ordered fixed length sequence of values of specified types.
// It is similar to a [Record], except that the fields are identified by their order instead of by names.
// It implements the [Node], [ABI], and [TypeDefKind] in... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/wit/option.go | wit/option.go | package wit
// Option represents a WIT [option type], a special case of [Variant]. An Option can
// contain a value of a single type, either build-in or user defined, or no value.
// The equivalent in Go for an option<string> could be represented as *string.
// It implements the [Node], [ABI], and [TypeDefKind] interf... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/wit/pointer.go | wit/pointer.go | package wit
// PointerTo returns a [Pointer] to [Type] t.
func PointerTo(t Type) *TypeDef {
return &TypeDef{Kind: &Pointer{Type: t}}
}
// Pointer represents a pointer to a WIT type.
// It is only used for ABI representation, e.g. pointers to function parameters or return values.
type Pointer struct {
_typeDefKind
... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/wit/result.go | wit/result.go | package wit
// Result represents a WIT [result type], which is the result of a function call,
// returning an optional value and/or an optional error. It is roughly equivalent to
// the Go pattern of returning (T, error).
// It implements the [Node], [ABI], and [TypeDefKind] interfaces.
//
// [result type]: https://co... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/wit/wit.go | wit/wit.go | package wit
import (
"fmt"
"slices"
"strings"
)
// Node is the common interface implemented by the WIT ([WebAssembly Interface Type])
// types in this package.
//
// [WebAssembly Interface Type]: https://component-model.bytecodealliance.org/design/wit.html
type Node interface {
// WITKind returns the human-readab... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/wit/interface.go | wit/interface.go | package wit
import (
"iter"
"go.bytecodealliance.org/wit/ordered"
)
// An Interface represents a [collection of types and functions], which are imported into
// or exported from a [WebAssembly component].
// It implements the [Node], and [TypeOwner] interfaces.
//
// [collection of types and functions]: https://gi... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/wit/load.go | wit/load.go | package wit
import (
"bytes"
"context"
"errors"
"fmt"
"io"
"io/fs"
"os"
"path/filepath"
"strings"
"github.com/tetratelabs/wazero/sys"
"go.bytecodealliance.org/internal/wasmtools"
)
// LoadJSON loads a [WIT] JSON file from path.
//
// [WIT]: https://github.com/WebAssembly/component-model/blob/main/design/m... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/wit/resolve.go | wit/resolve.go | package wit
import (
"iter"
"slices"
"go.bytecodealliance.org/wit/iterate"
)
// Resolve represents a fully resolved set of WIT ([WebAssembly Interface Type])
// packages and worlds. It implements the [Node] interface.
//
// This structure contains a graph of WIT packages and their contents
// merged together into... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/wit/docs.go | wit/docs.go | // Package wit contains a Go representation of the WIT (WebAssembly Interface Type) specification.
//
// # WIT
//
// WIT ([WebAssembly Interface Type]) is an interface definition language with rich types, functions, and methods,
// used to define the interface of a [Component].
//
// Note: this package depends on the [... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/wit/list_test.go | wit/list_test.go | package wit
import "testing"
// https://github.com/bytecodealliance/go-modules/issues/288
func TestListAlign(t *testing.T) {
var l List
got, want := l.Align(), uintptr(4)
if got != want {
t.Errorf("ABI alignment for list<T> is %d, expected %d", got, want)
}
}
| go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
bytecodealliance/go-modules | https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/wit/ident.go | wit/ident.go | package wit
import (
"errors"
"strconv"
"strings"
"github.com/coreos/go-semver/semver"
)
// Ident represents a [Component Model] identifier for a [Package], [World], or [Interface],
// such as [wasi:clocks@0.2.0] or [wasi:clocks/wall-clock@0.2.0].
//
// A Ident contains a namespace and package name, along with a... | go | Apache-2.0 | 55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1 | 2026-01-07T09:45:48.830497Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.