Anasmp / wasmgolang

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Features

  • Wasm implimentation using golang
  • Api binding from wasm
  • Button hide and show from wasm
  • Fetch the top 10 stories from Hacker News and displays them as list
  • The example require at least Go version 1.12

Usage

To build wasm file from go file

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

To run go static server

go run server.go

After a successfull compilation

Browse to http://localhost:8080

About


Languages

Language:JavaScript 81.9%Language:Go 9.2%Language:HTML 8.9%