Go Commands - build: Difference between revisions
Jump to navigation
Jump to search
Line 18: | Line 18: | ||
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. | ||
Wildcards can be specified in the package specifiers. A three period indicates a pattern matching any string: | |||
<pre> | |||
go build something/... | |||
</pre> | |||
=Building an Executable= | =Building an Executable= |
Revision as of 06:32, 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.
Wildcards can be specified in the package specifiers. A three period indicates a pattern matching any string:
go build something/...