You could put such packages at $GOPATH/src/local/name_of_package. This means that if I have a project that was using the specific project, the import would be as follows
*import "local/name_of_package" * Although, if the package is available online (such as github), it is better to "install" such packages using the 'go get' command. This way the package automatically ends up in your GOPATH. On Tuesday, 16 April 2019 17:13:09 UTC-7, Joshua wrote: > > Is there any way to install a package locally so that other projects can > use it? In the gradle world, this is done using the "install" task. > > Joshua > -- 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.