wasm

command
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2018 License: MIT Imports: 5 Imported by: 0

README

go1.11 에 추가된 WebAssembly(abbreviated wasm) 테스트

테스트

# wasm 로 동작할 코드 빌드
GOARCH=wasm GOOS=js go build -o test.wasm wasm.go

# test.wasm 실행을 위한 html, js 파일 복사
cp $(go env GOROOT)/misc/wasm/wasm_exec.{html,js} .

# test.wasm 실행을 위한 웹서버 실행
go run wasm_server.go

# test.wasm 실행
http://localhost:8080/wasm_exec.html  => run 클릭하면 브라우저 디버그 콘솔창에 메시지 출력~

Documentation

Overview

ysoftman wasm 로 동작할 코드

ysoftman wasm 서버

Jump to

Keyboard shortcuts

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