title: non-standard import in standard package windows
body: <p>I can't seem to run my go code because of this error </p>
  
  <blockquote>
    <p>non-standard import "gopkg.in/olivere/elastic.v5" in standard package "goprojects/search"</p>
  </blockquote>
  
  <p>Main.go is located at: C:\Go\src\goprojects\search\main.go</p>
  
  <p>GOROOT is C:\Go</p>
  
  <p>GOPATH is C:\Go\src\goprojects (tried adding my current working directory here \search, but didnt help)</p>
  
  <p>when I run "go get gopkg.in/olivere/elastic.v5" I get the imported files in C:\Go\src\goprojects\src\gopkg.in\olivere\elastic.v5</p>
  
  <p>visual studio code is giving me this message</p>
  
  <blockquote>
    <p>cannot find package "go.pkg.in/olivere/elastic.v5" in any of:</p>
    
    <p>C:\Go\src\vendor\gopkg.in\olivere\elastic.v5 (vendor tree)</p>
    
    <p>C:\Go\src\gopkg.in\olivere\elastic.v5 (from $GOROOT)</p>
    
    <p>C:\Go\src\goprojects\src\gopkg.in\olivere\elastic.v5 (from $GOPATH)</p>
  </blockquote>
  
  <p>my code</p>
  
  <pre><code>package main
  
  import (
      "fmt"
      "net/http"
  
      elastic "gopkg.in/olivere/elastic.v5"
  )
  
  func main() {
      http.HandleFunc("/search", search)
      http.ListenAndServe(":3000", nil)
  }
  
  func search(w http.ResponseWriter, r *http.Request) {
      searchString := r.URL.Query().Get("q")
      fmt.Println("Searching for" + searchString)
  
      // Create a client
      client, err := elastic.NewClient()
  
      w.Write([]byte(searchString))
  }
  </code></pre>