How I can use local package in golang? : <p>Here are two <code>.go</code> files.</p>

<pre><code>├── lib.go
└── main.go
</code></pre>

<p>The <code>lib.go</code> has a package <code>libtest</code>.</p>

<pre><code>$ cat lib.go 

package libtest

import (
    "fmt"
)

func TestLibFunc() {
    fmt.Println("This is test library function")
}
</code></pre>

<p>The <code>main.go</code> has a package <code>main</code>.</p>

<pre><code>$ cat main.go
package main

import (
    "libtest"
)

func main() {
    libtest.TestLibFunc()
}
</code></pre>

<p>When I tried to build them, but it's failed.</p>

<pre><code>$ go build *.go
can't load package: package main: found packages libtest (lib.go) and main (main.go) in /Users/dev/work/tmp/local-package
</code></pre>

<p>How can I use local packages in <code>main</code> package?</p>
