Re: [go-nuts] directory name versus package name

2017-03-29 Thread Jan Mercl
On Wed, Mar 29, 2017 at 9:19 AM Dorival Pedroso wrote: > Anyway, so, why using package mylib then? 'mylib' is the implicit qualifier used to access the exported identifiers from that package from within a package importing it. -- -j -- You received this message because you are subscribed to

[go-nuts] directory name versus package name

2017-03-29 Thread Dorival Pedroso
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 f