Go Keyword import: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
Line 5: Line 5:
=Internal=
=Internal=


* [[Go Concepts - Lexical Structure#Keywords|Lexica Structure]]
* [[Go Concepts - Lexical Structure#Keywords|Lexical Structure]]


=Overview=
=Overview=

Revision as of 05:52, 22 March 2016

External

Internal

Overview

...
import [package-name-alias] "package-path"
...

Example

...
import "lib/math"
...

The package-name-alias is optional. If not specified, the package will be referred under the name