Go Commands - build

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

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/...

Building an Executable

Building an Executable