goita

command module
v0.0.0-...-aecc1da Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2021 License: MIT Imports: 9 Imported by: 0

README

goita

Minimal desktop application with webview, websockets and WASM

Description

Requires go 1.16

This is an experiment on how to create a minimal desktop application using only go language.

The wasm folder contains all the webassembly code that will be generated inside the storage folder.

The bridge folder is just a set of types to enforce communication between the go application code and the WASM through JSON messages on websockets.

Inside the main.go embeds the WASM files and starts a webserver on a random port to enable communication between WASM and the application.

Run it

Just generate the WAMS code with:

go generate wasm/main.go

and then run it

go run main.go

A webview window will appear and there you can start querying for the system platform or the username that started the application.

example

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