Versions in this module Expand all Collapse all v0 v0.12.2 Nov 7, 2026 v0.12.1 Nov 5, 2026 v0.12.0 Nov 4, 2026 v0.11.1 Nov 4, 2026 v0.11.0 Nov 4, 2026 v0.10.0 Nov 4, 2026 v0.9.1 Nov 3, 2026 v0.9.0 Nov 3, 2026 v0.8.0 Nov 3, 2026 v0.7.0 Nov 3, 2026 v0.6.0 Oct 30, 2026 Changes in this version + const Blocked + const CopyCancelled + const CopyCompleted + const CopyDropped + const EventNone + const EventStreamRead + const RootModule + const StreamCancelRead + const StreamCancelReadAsync + const StreamDropReadable + const StreamRead + const StreamReadAsync + const WaitableJoin + const WaitableSetDrop + const WaitableSetNew + const WaitableSetPoll + const WaitableSetWait + var WaitableBuiltins = []CoreImport + func ReturnsStream(f *Func) bool + type CoreImport struct + Name string + Params string + Result string + func StreamBuiltins(fn string) []CoreImport type Lowering + func PlanElems(p uint32, t *Type, vs []any) (*Lowering, error) v0.5.1 Oct 29, 2026 v0.5.0 Oct 29, 2026 Changes in this version + func ParseFiles(deps []*Interface, srcs ...string) (map[string]*Interface, error) type Type + Owner string v0.4.0 Oct 28, 2026 Changes in this version + const F32c + const F64c + const I32 + const I64 + const MaxFlatParams + const MaxFlatResults + const MaxListBytes + var ErrTrap = errors.New("canonical ABI trap") + func Align(t *Type) uint32 + func Flatten(t *Type) []byte + func LiftFlat(t *Type, vals []uint64, m Memory) (any, error) + func LiftParams(f *Func, args []uint64, m Memory) ([]any, error) + func Load(m Memory, p uint32, t *Type) (any, error) + func LowerFlat(m Memory, a Allocator, t *Type, v any) ([]uint64, error) + func Parse(src string) (map[string]*Interface, error) + func Size(t *Type) uint32 + func Store(m Memory, a Allocator, p uint32, t *Type, v any) error + type AllocReq struct + Align uint32 + Size uint32 + type Allocator interface + Alloc func(align, size uint32) (uint32, error) + type Case struct + Name string + Type *Type + type CoreSig struct + Params []byte + ParamsInMemory bool + Results []byte + RetPtr bool + func Sig(f *Func) CoreSig + type Field struct + Name string + Type *Type + type Func struct + Async bool + Kind FuncKind + Name string + Params []Param + Result *Type + func (f *Func) ImportName(resource string) string + type FuncKind int + const Constructor + const Freestanding + const Method + const Static + type Interface struct + Funcs []*Func + Name string + Package string + Resources map[string]*Resource + Types map[string]*Type + func (i *Interface) ImportModule() string + func (i *Interface) ResourceNames() []string + type Kind int + const Bool + const Borrow + const Char + const Enum + const F32 + const F64 + const Flags + const Future + const List + const Named + const Option + const Own + const Record + const Result + const S16 + const S32 + const S64 + const S8 + const Stream + const String + const Tuple + const U16 + const U32 + const U64 + const U8 + const Variant + type Lowering struct + Reqs []AllocReq + func PlanResult(f *Func, v any, args []uint64) (*Lowering, error) + func (l *Lowering) Apply(m Memory, ptrs []uint32) (uint64, error) + type Memory interface + Read func(off, n uint32) ([]byte, bool) + Write func(off uint32, b []byte) bool + type Param struct + Name string + Type *Type + type Resource struct + Funcs []*Func + Name string + type ResultValue struct + Err bool + Value any + type Some struct + Value any + type Type struct + Cases []Case + Elem *Type + Err *Type + Fields []Field + Kind Kind + Labels []string + Name string + func ParamTuple(f *Func) *Type + type VariantValue struct + Case int + Value any