title: How to include the package in local directory in to the main.go
body: <p>I am using go version go1.11.2 windows/amd64 in windows 10</p>
  
  <p>i have folder in desktop with name "GoPro" which has 
  one file - main.go
  one folder - Modules</p>
  
  <p>The "Modules" folder contains 
  one file - Modules.go</p>
  
  <p>Folder Structure </p>
  
  <pre><code>Desktop
     |-------&gt;GoPro
                 |-----&gt;main.go
                 |-----&gt;Models
                            |----&gt;Models.go
  </code></pre>
  
  <p>main.go </p>
  
  <pre><code>// desktop/GoPro/main.go 
  
  package main
  
  import (
      "./Models"
  )
  
  func main() {
      Models.Printhello()
  }
  </code></pre>
  
  <p>Models.go</p>
  
  <pre><code>// desktop/GoPro/Models
  
  package Models
  
  import "fmt"
  
  func Printhello() {
      fmt.Println("Hello")
  }
  </code></pre>
  
  <p>If try to run the main.go , I am getting the below error , Go recongise the package but it saying undefined.</p>
  
  <blockquote>
    <p>go run main.go</p>
    
    <h1>command-line-arguments</h1>
    
    <p>.\main.go:8:2: undefined: Models</p>
  </blockquote>
  
  <p>The folder is not in GOPATH. I am just trying to import the package with in sub folder of main.go </p>