title: How to read a file present in a package into another file belonging to the same package?
body: <p>I'm trying to a read a file (a.go) present in a package into another file (b.go) which is also present in the same package. I used <strong>os.Open()</strong> method but it is working only when i give the complete system path of the file(ex: home/bin/xyz/a.go).</p>
  
  <p>But, I want the file (a.go) to be read into (b.go) <em>without using the entire system path</em>. Can anyone please help?</p>
  
  <p>Folder</p>
  
  <pre><code>  -- a.go
  
    -- b.go
  </code></pre>
  
  <p>//Inside b.go we have a function//</p>
  
  <pre><code>func (xyz){
  
  x:= os.Open("--path to a.go--") // This path shouldn't be the system path
  
  }
  </code></pre>