- You can write and compile the code on any platform supported by Go (Linux BSD Mac Windows)
Eg. to compile for Linux Mac OS X and Windows
GOOS=linux GOARCH=amd64 go build -o myprogram.linux
GOOS=darwin GOARCH=amd64 go build -o myprogram.darwin
GOOS=windows GOARCH=amd64 go build -o myprogram.exe
You won’t need to install anything else on the production server. The compiled binary will just work. You will need to copy up any files the binary depends on, like HTML templates etc.
The oracle driver will be included in the binary. You’ll need to read in the specific configuration details (address, username, password) from an environment variable or config file.