Go Development and Execution Environment: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
m (Ovidiu moved page Go Runtime to Go Development and Execution Environment without leaving a redirect)
Line 5: Line 5:
==<tt>GOPATH</tt>==
==<tt>GOPATH</tt>==
<FONT COLOR=DARKKHAKI>The <code>GOPATH</code> environment variable defines the [[Go_Language_Modularization#Workspaces|workspace]] directory. Go tools assume that your code is under the path designated by <code>GOPATH</code>.
<FONT COLOR=DARKKHAKI>The <code>GOPATH</code> environment variable defines the [[Go_Language_Modularization#Workspaces|workspace]] directory. Go tools assume that your code is under the path designated by <code>GOPATH</code>.
==<tt>GOROOT</tt>==
=Compilation=
=Compilation=
=Execution=
=Execution=

Revision as of 01:12, 15 August 2023

Internal

Overview

Environment Variables

GOPATH

The GOPATH environment variable defines the workspace directory. Go tools assume that your code is under the path designated by GOPATH.

GOROOT

Compilation

Execution

cd $PROJECT_DIR
go run ./src/main/main.go

TODO

Deplete, merge and delete Go Concepts - Runtime