Hello,
I’ve got a bit of a weird question here. It probably doesn’t make sense at all, but I figured I would just ask anyway, to see if there’s any alternative way to get around this.
To explain my situation: I have a compiled Go program. With this Go program, I would like to compile other Go programs. I would use exec.Command to simply go build the other programs, but I’m sure that does not work if Go is not installed on the system the program is being ran on, and ideally I’d like to be able to distribute the compiled Go program without people needing to install Go in order to run it.
Is there any other way to compile a Go package from compiled Go code, without having Go installed on the system the program is ran on?
Thanks in advance,