Go packages are usually source code published in web-accessible 
repositories such as GitHub. The repositories for packages you want to use 
are checked out/cloned into GOPATH 
<https://github.com/golang/go/wiki/GOPATH> on your local machine using go 
get 
<https://golang.org/cmd/go/#hdr-Download_and_install_packages_and_dependencies> 
and 
the import path for that package 
<https://golang.org/cmd/go/#hdr-Remote_import_paths>.

Sharing a package you created is as easy as pushing the code for it to a 
web-accessible repository and making sure that imports of any packages in 
that repository use the full import path (e.g., 
github.com/username/pkgroot/pkg2).

Find packages at https://awesome-go.com and https://godoc.org (which also 
lets you see the documentation for any publicly-shared package).

On Monday, June 26, 2017 at 9:37:48 AM UTC+2, st ov wrote:
>
> Ruby has Gems and .NET has DLLs.
> How do you package and share libraries in Go?
>
>
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to