Versions in this module Expand all Collapse all v0 v0.1.18 Nov 13, 2026 Changes in this version + var ErrClosed = errors.New("native: object closed") + func BoolArg(b bool) uintptr + func Export(m *Module, v any, ...) uint64 + func FloatArg(f float64) uintptr + func FloatResult(r uintptr) float64 + func Flush() + func Forget(ids ...uint64) + func Func(fn func(d *Decoder, e *Encoder) error, notify bool) uint64 + func HandleOf(v any) uint64 + func LibraryName(module string) string + func Register(m *Module, wraps map[string]Wrapper) + func Seq[T any](s iter.Seq2[T, error]) iter.Seq[T] + func Stream[T any](ctx context.Context, o *Object, sym string, flags Flags, ...) iter.Seq2[T, error] + func WindowHandle(w *golet.Window) uint64 + func Wrap(h uint64, module, iface string) any + type Buffer struct + func NewBuffer(n int) *Buffer + func (b *Buffer) Bytes() []byte + func (b *Buffer) Len() int + type Decoder struct + func (d *Decoder) Bool() bool + func (d *Decoder) Buffer() *Buffer + func (d *Decoder) Bytes() []byte + func (d *Decoder) Close() error + func (d *Decoder) Duration() time.Duration + func (d *Decoder) Err() error + func (d *Decoder) Float() float64 + func (d *Decoder) Int() int64 + func (d *Decoder) Len() int + func (d *Decoder) String() string + func (d *Decoder) Time() time.Time + func (d *Decoder) Uint() uint64 + type Encoder struct + func NewEncoder() *Encoder + func (e *Encoder) Bool(v bool) + func (e *Encoder) Buffer(b *Buffer) + func (e *Encoder) Bytes(b []byte) + func (e *Encoder) Duration(d time.Duration) + func (e *Encoder) Float(v float64) + func (e *Encoder) Int(v int64) + func (e *Encoder) Len(n int) + func (e *Encoder) Rect(x, y, w, h float32) + func (e *Encoder) String(s string) + func (e *Encoder) Texture(t *Texture) + func (e *Encoder) Time(t time.Time) + func (e *Encoder) Uint(v uint64) + type Error struct + Code string + Domain string + Message string + Number int + func NewError(code string) *Error + func (e *Error) Error() string + func (e *Error) Is(target error) bool + type Flags int + const MainThread + type Module struct + Deps []string + Dir string + Errors []*Error + Langs []string + MinMacOS string + Name string + Symbol string + func (m *Module) New(entry string, flags Flags) (*Object, error) + func (m *Module) Object(h uint64, flags Flags) *Object + type Object struct + func (o *Object) Call(sym string, flags Flags, args *Encoder) (*Decoder, error) + func (o *Object) CallContext(ctx context.Context, sym string, flags Flags, args *Encoder) (*Decoder, error) + func (o *Object) Close() error + func (o *Object) Direct(sym string, args ...uintptr) uintptr + func (o *Object) Handle() uint64 + func (o *Object) Module() *Module + func (o *Object) Subscribe(sym string, flags Flags, args *Encoder, funcs ...uint64) io.Closer + func (o *Object) View() uintptr + type Texture = texture.Texture + func NewTexture() *Texture + type View interface + NativeView func() uintptr + type Wrapper struct + Flags Flags + Wrap func(*Object) any