예제 #1
0
파일: newstuff.go 프로젝트: cierniak/gowasm
//wasm:assert_return (invoke "TestPuts") (i32.const 0)
func TestPuts() int {
	a := [...]byte{'h', 'e', 'l', 'l', 'o', 0}
	p := &a[0]
	v8.Puts(p)
	return 0
}
예제 #2
0
파일: hello.go 프로젝트: cierniak/gowasm
func main() {
	a := [...]byte{'h', 'e', 'l', 'l', 'o', 0}
	p := &a[0]
	v8.Puts(p)
}