The advantage of adding a go.mod file is not for you, but for people that 
will add your package as a dependency.

Manlio


On Sunday, May 16, 2021 at 8:25:23 AM UTC+2 Patrick wrote:

> Hello all,
>
> I have a small package without any dependencies (besides standard library) 
> on GitHub. Just a single .go file and a test file. 
>
> Question: do I need a go.mod file? Does it give any advantages over not 
> having one?
>
> The package works fine by just importing it.
>
> Patrick
>
> (The package is located at https://github.com/speedata/hyphenation )
>
>

-- 
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/0397ac02-4edd-482c-820d-f23f2b48ccffn%40googlegroups.com.

Reply via email to