THREE.js example of rotating cube using gopherjs bindings. 160 lines of Go code.
Drop index.html
in a browser window or open using browser.
-
Code the project in Go. The program is contained in
main.go
. -
Generate javascript using
gopherjs
with command:gopherjs build
You can install gopherjs
with the following command:go get -u github.com/gopherjs/gopherjs
-
Create my html page manually as
index.html
The gopherjs bindings for three.js
have been archived!
If you are starting a new project consider using the WASM bindings!