Go Development and Execution Environment: Difference between revisions
Jump to navigation
Jump to search
Line 2: | Line 2: | ||
* [[Go Engineering#Subject|Go Engineering]] | * [[Go Engineering#Subject|Go Engineering]] | ||
=Overview= | =Overview= | ||
=The <tt>go</tt> Tool= | |||
<code>go</code> is a tool used to manage source code. It has many commands. | |||
=Environment Variables= | =Environment Variables= | ||
==<tt>GOPATH</tt>== | ==<tt>GOPATH</tt>== |
Revision as of 01:17, 15 August 2023
Internal
Overview
The go Tool
go
is a tool used to manage source code. It has many commands.
Environment Variables
GOPATH
The GOPATH
environment variable defines the workspace directory. Go tools assume that your code is under the path designated by GOPATH
. Used to search for packages during compilation, when packages are being imported.
GOROOT
Used to search for packages during compilation, when packages are being imported.
Compilation
Execution
cd $PROJECT_DIR
go run ./src/main/main.go
TODO
Deplete, merge and delete Go Concepts - Runtime