golang store file as variable in compiletime code example Example: golang compile with injected variable go build -ldflags "-X main.InternalVarName=$BASH_VAR_NAME"