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