Hacker News new | past | comments | ask | show | jobs | submit login

How do you target WebGL with Go? Is it possible to cross compile Go to JS?



It seems there is a cross compiler for Go https://github.com/gopherjs/gopherjs There are also bindings for WebGL https://github.com/gopherjs/webgl


As graetzer said, I use GopherJS and WebGL bindings.

For a simple example, see https://github.com/shurcooL/play/commit/cd45204c1b2d89062255....




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: