Go Development and Execution Environment: Difference between revisions
Jump to navigation
Jump to search
(→GOPATH) |
|||
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>. | ||
=Compilation= | |||
=Execution= | |||
<syntaxhighlight lang='bash'> | |||
cd $PROJECT_DIR | |||
go run ./src/main/main.go | |||
</syntaxhighlight> | |||
=TODO= | =TODO= | ||
<font color=darkkhaki>Deplete, merge and delete [[Go Concepts - Runtime]]</font> | <font color=darkkhaki>Deplete, merge and delete [[Go Concepts - Runtime]]</font> |
Revision as of 00:53, 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
.
Compilation
Execution
cd $PROJECT_DIR
go run ./src/main/main.go
TODO
Deplete, merge and delete Go Concepts - Runtime