title: Goland doesn't see functions from another file
body: <p>I have <code>main.go</code> file</p>
  
  <pre><code>package main
  
  func main() {
      func2()
  }
  </code></pre>
  
  <p><code>func2</code> is defined in <code>file2.go</code>: </p>
  
  <pre><code>package main
  
  func func2(){
      ...
  }
  </code></pre>
  
  <p>Everything is OK when I compile and run it from a command line:</p>
  
  <pre><code>go run main.go file2.go
  </code></pre>
  
  <p>But when I run it from <code>Goland</code> by pressing <code>RUN</code> it gives me an error:</p>
  
  <pre><code># command-line-arguments
  ./main.go:95: undefined: func2
  </code></pre>
  
  <p>How should I overcome it?</p>