title: In Go, how to import function directly, without need to prefix with the package name when I call it?
body: <p>In the Go programming language, why after importing a package do I still have to prefix a method within that package with the package name?</p>
  <p>i.e.</p>
  <pre><code>import &quot;io/ioutil&quot;
  
  func main() { 
      content, err = iotuil.ReadFile(&quot;somefile.txt&quot;)
      // etc..
  }
  </code></pre>
  <p>Isn't this redundant? In Java, for example, you can do things like importing <code>Files.readAllLines</code> etc without having <code>Files</code> imported.</p>