How do I set Environment Variables for Golang?

Environment Variables for Golang are as below :


Variable

Value Example

Description

GO_RUN

 

Sets a name of the executable binary file (if not specified, the deployment script will try to locate one based on the project name)

GOPATH

/home/CloudJiffy/webapp

Defines the deployment folder

GO_BUILD_OPTIONS

-a

Options and flags which are used for application building

GO_RUN_OPTIONS

-exec

Options and flags which are used to run application

GO_VERSION

1.10

Version of Golang server used inside the container

WEB_ROOT

/home/CloudJiffy/webapp

Path to the deployed application


Was this article helpful?

mood_bad Dislike 0
mood Like 0
visibility Views: 8103