queens-problem-simple-wasm

command
v0.0.0-...-9b4a7b0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: MIT Imports: 3 Imported by: 0

README

Queens Problem Solver WASM

Introduction

This Go example runs a n queens problem solver using WebAssembly in the browser. The solver example can be found here.

How to Use

  • Run go build -o qpsimplewasm.exe to build an executable
  • Run docker build -t qpsimplewasm . to create Docker image hosting the website. Run the web API with docker run -d -p 8080:80 --name qpsimplewasm qpsimplewasm.
  • Open http://localhost:8080 and see output of Go app in the console window. Note content compression in network tab.
  • Run docker build -t qptinywasm -f Dockerfile.tiny . to create Docker image with TinyGo hosting the website. Run the web API with docker run -d -p 8080:80 --name qptinywasm qptinywasm.
  • Open http://localhost:8080 and see output of Go app in the console window. Note content compression in network tab. Compare size and runtime with full Go version.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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