Hello,
I haven't noticed that the code below (located at $GOPATH/src/MyWrapper):
package mylib
import "fmt"
func SayHello() {
fmt.Println("hello")
}
is actually being installed (go install) as a MyWrapper package, even though the package name was explicitly given as mylib.
I couldn't find in the documentation where the handling of this situation is described; i.e. how the final package name is decided (apparently the directory name is chosen).
Anyway, so, why using package mylib then?
Cheers.
Dorival