p>
<p>Here is a simple example, opening a file and reading some of it.</p>
<pre><code><span class="hl-0"> file, </span><span class="hl-2">err</span><span class="hl-0"> :</span><span class="hl-1">=</span><span class="hl-0"> os.</span><span class="hl-2">Open</span><span class="hl-0">(</span><span class="hl-3">&quot;file.go&quot;</span><span class="hl-0">) </span><span class="hl-4">// For read access.</span><br/><span class="hl-0"> </span><span class="hl-1">if</span><span class="hl-0"> err </span><span class="