[go-nuts] my package not include in go modules

2020-07-24 Thread Ali Hassan
I want to import libraries in module file but modules add all other 
libraries except those packages which I had created, DB is one of them. How 
to import? 
Error , please help me 
to resolve 

-- 
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/66979dfc-a575-4001-ad48-902e9c8d3832o%40googlegroups.com.


Re: [go-nuts] my package not include in go modules

2020-07-29 Thread Marvin Renich
* Ali Hassan  [200725 01:04]:
> I want to import libraries in module file but modules add all other 
> libraries except those packages which I had created, DB is one of them. How 
> to import? 
> Error , please help me 
> to resolve 

Also note that any go command that needs to download the package must
download the whole repo.  Downloading happens for go get and for a
number of go commands, such as go build and go test, when the package
has not already been downloaded and cached.  Using one repo = one module
= one package means that downloads and disk space for cached repos can
be smaller.

However, if several packages are closely related and will typically be
used together, putting them in the same module (and repo) makes sense.

...Marvin

-- 
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/20200729132217.nelg2pttvyzp6i7q%40basil.wdw.