Permalink
Browse files

Add documents

  • Loading branch information...
hajimehoshi committed Nov 5, 2018
1 parent b0e1786 commit 9c36104a24b8823669aeec409d3d05c372206fac
Showing with 11 additions and 1 deletion.
  1. +3 −1 README.md
  2. +8 −0 js/doc.go
@@ -3,4 +3,6 @@
[![Build Status](https://travis-ci.org/gopherjs/gopherwasm.svg?branch=master)](https://travis-ci.org/gopherjs/gopherwasm)
[![GoDoc](https://godoc.org/github.com/gopherjs/gopherwasm/js?status.svg)](http://godoc.org/github.com/gopherjs/gopherwasm/js)
A wrapper for GopherJS (`gopherjs/js`) and Wasm (`syscall/js`)
A wrapper for GopherJS (`gopherjs/js`) and Wasm (`syscall/js`). With this, you can make your application work with both GopherJS and Wasm.
GopherWasm's API emulates `syscall/js`, so please refer [`syscall/js` API document](https://golang.org/pkg/syscall/js/?GOOS=js&GOARCH=wasm) to know how to use API of GopherWasm.

This comment has been minimized.

@dmitshur

dmitshur Nov 5, 2018

Member

Have you considered using a simpler URL of just https://golang.org/pkg/syscall/js/? Doesn't it give the same results?

This comment has been minimized.

@hajimehoshi

hajimehoshi Nov 5, 2018

Member

Oh I didn't realize this. I'll fix this later :-)

@@ -0,0 +1,8 @@
// Copyright 2018 The GopherWasm Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Package js offers API that works with both GopherJS and Wasm.
//
// The API emulates syscall/js API, so please refer syscall/js API document (https://golang.org/pkg/syscall/js/?GOOS=js&GOARCH=wasm) for more detail.
package js

0 comments on commit 9c36104

Please sign in to comment.