host

package
v0.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 1, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package host provides helpers for calling host functions from a TinyGo WASM guest module running inside GoloScript.

It handles the string encoding/decoding needed to communicate with host-side string handlers registered via wasmRegisterStringHandler.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CallString

func CallString(hostFn func(ptr, length uint32) uint64, input string) string

CallString calls a host function that accepts (ptr, length uint32) and returns a packed uint64 string result. It handles encoding the input string and decoding the host's response.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL