I know that this topic is quite old, but I thought it is worth mentioning that now you can compile Golang directly for mips.
You would use something like:
GOARCH=mipsle GOOS=linux go build main.go
You can thus compile your program on any computer and just copy the resulting executable on your Onion.
The resulting executable will be able to run on Onion directly.