Skip to content

PashaWNN/boids_go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Boids simulation

Boids algorithm implementation in Go language, compiled to WebAssembly

Live demo

Compilation

GOOS=js GOARCH=wasm go build -o main.wasm 

Compiled binary can be found in Releases section of GitHub repository. Note that you can't just open index.html from local filesystem. You need web-server which sets correct mime type (mime .wasm application/wasm) to run WebAssembly. Simpliest solution is to download Caddy server and just run:

caddy

from project root.