title: Go import local package
body: <p>I have a <code>main.go</code></p>
  
  <pre><code>package main
  
  import (
      "context"
      "fmt"
      "log"
  
      model "model"
  
      "github.com/aws/aws-lambda-go/events"
      "github.com/aws/aws-lambda-go/lambda"
  )
  
  func handler(...){
  }
  </code></pre>
  
  <p>I try to import model which is in the directory <code>model</code> and the file is called <code>model.go</code></p>
  
  <p>It just contains:</p>
  
  <pre><code>package model
  
  type xxx struct {
      xxx
  }
  </code></pre>
  
  <p>I try to import this in the main but I have the error:</p>
  
  <pre><code>build: cannot load model: cannot find module providing package model
  </code></pre>