Lines Matching full:code
21 the 32-bit (<code>386</code>) and 64-bit (<code>amd64</code>) x86 processor
57 <sup>†</sup><code>gcc</code> is required only if you plan to use
81 and extract it into <code>/usr/local</code>, creating a Go tree in
82 <code>/usr/local/go</code>. For example:
92 the archive you want is called <code>go1.2.1.linux-amd64.tar.gz</code>.
96 (Typically these commands must be run as root or through <code>sudo</code>.)
100 Add <code>/usr/local/go/bin</code> to the <code>PATH</code> environment
101 variable. You can do this by adding this line to your <code>/etc/profile</code>
102 (for a system-wide installation) or <code>$HOME/.profile</code>:
113 <code>/usr/local/go</code> (or <code>c:\Go</code> under Windows),
115 In this case you must set the <code>GOROOT</code> environment variable
121 following commands to <code>$HOME/.profile</code>:
130 <b>Note</b>: <code>GOROOT</code> must be set only when installing to a custom
143 The package installs the Go distribution to <code>/usr/local/go</code>.
147 The package should put the <code>/usr/local/go/bin</code> directory in your
148 <code>PATH</code> environment variable. You may need to restart any open
172 By default, the installer puts the Go distribution in <code>c:\Go</code>.
176 The installer should put the <code>c:\Go\bin</code> directory in your
177 <code>PATH</code> environment variable. You may need to restart any open
188 <a href="https://golang.org/dl/">Download the zip file</a> and extract it into the directory of your choice (we suggest <code>c:\Go</code>).
192 If you chose a directory other than <code>c:\Go</code>,
193 you must set the <code>GOROOT</code> environment variable to your chosen path.
197 Add the <code>bin</code> subdirectory of your Go root (for example, <code>c:\Go\bin</code>) to your <code>PATH</code> environment variable.
222 Create a directory to contain your <a href="code.html#Workspaces">workspace</a>,
223 <code>$HOME/work</code> for example, and set the <code>GOPATH</code> environment
233 (<code>$HOME/.profile</code> for example) or, if you use Windows,
235 <code>GOPATH</code> environment variable on your system.
239 Next, make the directories <code>src/github.com/user/hello</code> inside your
240 workspace (if you use GitHub, substitute your user name for <code>user</code>),
241 and inside the <code>hello</code> directory create a file named <code>hello.go</code>
256 Then compile it with the <code>go</code> tool:
264 The above command will put an executable command named <code>hello</code>
265 (or <code>hello.exe</code>) inside the <code>bin</code> directory of your workspace.
279 Before rushing off to write Go code please read the
280 <a href="/doc/code.html">How to Write Go Code</a> document,
289 <code>go</code> directory. This is usually <code>/usr/local/go</code>
290 under Linux, Mac OS X, and FreeBSD or <code>c:\Go</code>
295 You should also remove the Go <code>bin</code> directory from your
296 <code>PATH</code> environment variable.
297 Under Linux and FreeBSD you should edit <code>/etc/profile</code> or
298 <code>$HOME/.profile</code>.
300 should remove the <code>/etc/paths.d/go</code> file.
309 For real-time help, ask the helpful gophers in <code>#go-nuts</code> on the