cross-platform

command
v0.45.4 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: MIT Imports: 10 Imported by: 0

README

Cross-platform Example

This is a basic example of constructing a controllerbus, running a controller, and executing a directive against that controller. It runs in all platforms that Go or TinyGo support, including the web browser with WebAssembly or GopherJS.

Running on Desktop

To run on a host with the Go tool:

go run ./

Running in Browser with WebAssembly

Build the WebAssembly payload and run the server:

./wasm.bash

Browse to localhost:5000, open the console to view the log messages, and click "Run" to start the program.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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