title: Error in importing custom packages in Go Lang
body: <p>I have created a library by the name <code>libfastget</code> which is in the <code>src</code> with my program as </p>
  
  <pre><code>src
  |-libfastget
  |  |-libfastget.go
  |
  |-MainProgram
     |-main.go
  </code></pre>
  
  <p>and the <code>libfastget</code> exports a funtion <code>fastget</code> as follows</p>
  
  <pre><code>package libfastget
  
  import (
      "fmt"
      "io"
  
  )
  
  
  func fastget(urlPtr *string, nPtr *int, outFilePtr *string) download {
      .....
      return dl
  
  }
  </code></pre>
  
  <p>When I use the library in my main program </p>
  
  <pre><code>package main
  
  import (
      "fmt"
      "net/http"
      "os"
      "libfastget"
      "path/filepath"
      "strings"
      "flag"
      "time"
  
  )
  func uploadFunc(w http.ResponseWriter, r *http.Request) {
  
           n:=libfastget.fastget(url,4,filename)
  
      }
  
  }
  </code></pre>
  
  <p>I get the following error upon trying to build with <code>go build</code> </p>
  
  <pre><code># FServe
  ./main.go:94: cannot refer to unexported name libfastget.fastget
  ./main.go:94: undefined: libfastget.fastget
  </code></pre>
  
  <p>The strange thing is that the library file libfastget.a is present in the pkg folder.</p>