Go Keyword import: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
No edit summary
Line 6: Line 6:


* [[Go Concepts - Lexical Structure#Keywords|Lexica Structure]]
* [[Go Concepts - Lexical Structure#Keywords|Lexica Structure]]
=Overview=
<pre>
...
import [package-name-alias] "package-path"
...
</pre>
Example
<pre>
...
import "lib/math"
...
</pre>
The <tt>package-name-alias</tt> is optional. If not specified, the package will be referred under the name

Revision as of 05:51, 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