Go Commands - build: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 17: Line 17:
</pre>
</pre>


where the <tt><package-path-string-literal></tt> is the same literal used by the <tt>[[Go Keyword import|import]]<tt> statement.
where the <tt><package-path-string-literal></tt> is the same literal used by the <tt>[[Go Keyword import|import]]</tt> statement.


=Building an Executable=
=Building an Executable=

Revision as of 06:31, 4 April 2016

Internal

Overview

go build

builds the current package.

A specific package can be also built:

go build <package-path-string-literal>

where the <package-path-string-literal> is the same literal used by the import statement.

Building an Executable

Building an Executable