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
gopherjswith command:gopherjs build
You can install gopherjswith 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!
