title: Unable to include multi file in the golang
body: <p>I know this <a href="https://stackoverflow.com/questions/15049903/how-to-use-custom-packages-in-golang">question</a> has been asked before and I've tried all possible answers, but nothing still didn't help me.</p>
  
  <p>However to refresh the question again and to elaborate my problem. I'm actually trying to include a simple file to the main.go file. My folder structure and the rest of the information as follows:</p>
  
  <pre><code>\src\
     Multi-file\
       lib\Car.go
     main.go
  </code></pre>
  
  <p><strong>Car.go</strong></p>
  
  <pre><code> package main
  
      type Car struct {
          numberOfDoors int
          cylinders int
      }
  </code></pre>
  
  <p><strong>main.go</strong></p>
  
  <pre><code>package main 
  
  import (
      "fmt"
  )
  
  func main() {
      c := Car{4,6}
      fmt.Println(c)
  }
  </code></pre>
  
  <p>When I complie the main.go I'm getting the following error</p>
  
  <pre><code># command-line-arguments
  .\main.go:8: undefined: Car
  </code></pre>
  
  <p>Here is my <strong>go env</strong> details:</p>
  
  <pre><code>set GOARCH=amd64
  set GOBIN=
  set GOEXE=.exe
  set GOHOSTARCH=amd64
  set GOHOSTOS=windows
  set GOOS=windows
  set GOPATH=C:\xampp\htdocs\golang
  set GORACE=
  set GOROOT=C:\Go
  set GOTOOLDIR=C:\Go\pkg\tool\windows_amd64
  set GO15VENDOREXPERIMENT=
  set CC=gcc
  set GOGCCFLAGS=-m64 -mthreads -fmessage-length=0
  set CXX=g++
  set CGO_ENABLED=1
  </code></pre>
  
  <p>FYI: I tried including as package also that didn't even help me out.</p>
  
  <p>Any help would be extremely appreciated. </p>