Go Development and Execution Environment: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 15: Line 15:


=Execution=
=Execution=
<syntaxhighlight lang='bash'>
{{Internal|Go_Tool#run|<tt>go run</tt>}}
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 01:20, 15 August 2023

Internal

Overview

The go Tool

go is a tool used to manage source code. More details:

go

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

go run

TODO

Deplete, merge and delete Go Concepts - Runtime