Golang in OpenWrt

I'm trying to run Go programs in OpenWrt but haven't been able to. So far I installed golang-src package.

Is there a Go interpreter available for OpenWrt? If not, how should I go about compiling and running Go programs in OpenWrt?

As I'm using an SBC to run OpenWrt instead of an OEM router, space and memory are no constraints.

Did you really want to compile the programs on the target? You can set your GOOS and GOARCH on your development machine and cross-compile the binary for your program?


Came across a tutorial to cross-compile the binary for openWRT