Assuming by package name your mean
package "packagename"
and import path
import "importpath"
Guess by "even if it wasn't" you mean "even if it wasn't top level and was 
exporting functionality"

but don't quite understand what you meant


On Wednesday, 28 April 2021 at 21:47:15 UTC+1 axel.wa...@googlemail.com 
wrote:

> FWIW the package name doesn't *have* to be the same as the import path. So 
> even if it wasn't, you could name the package something else and still use 
> that import path.
> Otherwise, there would be the option to use `_`, which is valid inside an 
> identifier.
>
> On Wed, Apr 28, 2021 at 10:40 PM iammadab <iamm...@gmail.com> wrote:
>
>> Apparently, because it is a top level module and it won't be exporting 
>> anything it is actually fine.
>> Thanks.
>>
>> On Wednesday, 28 April 2021 at 21:18:16 UTC+1 seank...@gmail.com wrote:
>>
>>> Yes that can be your module name, it won't affect much
>>>
>>> On Wednesday, April 28, 2021 at 10:14:55 PM UTC+2 iammadab wrote:
>>>
>>>> Hi, I have a github repository name (sherlock-server) of which I have 
>>>> found no one word description that captures the essence.
>>>>
>>>> Can I name the module github.com/username/sherlock-server?
>>>> There will be internal packages in it and so their imports will contain 
>>>> the above module name. 
>>>> What is the best way to name this module?
>>>>
>>>> Thanks.
>>>>
>>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "golang-nuts" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to golang-nuts...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/golang-nuts/f31cf145-316b-4a68-b771-b3e4e692d310n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/golang-nuts/f31cf145-316b-4a68-b771-b3e4e692d310n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/f12617db-264d-4f67-a1db-ef56e2b2a16en%40googlegroups.com.

Reply via email to