Registry / utility / gopherjs-gopherjs

gopherjs-gopherjs

JSON →
library1.20.2gogounverified

GopherJS compiles Go code to JavaScript for running in the browser.

go get github.com/gopherjs/gopherjs
INSTALL
IMPORT
SIG · GOPHERJS-GOPHERJS
G
gopherjs-gopherjs
utilitygov1.20.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

gopherjs
github.com/gopherjs/gopherjs

Print a message to the browser console using GopherJS.

package main import ( "fmt" "github.com/gopherjs/gopherjs/js" ) func main() { js.Global.Get("console").Call("log", "Hello from GopherJS!") }
Debug
Known issues
gotchaGopherJS has limited support for goroutines and channels; some standard library features may not work.
fix
Test your code thoroughly in the browser and avoid heavy concurrency patterns.
affects: all
Upgrade
Version history
1.20.2latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
gopherjs-gopherjs — go get gopherjs-gopherjs · libregistry