On Monday, 5 March 2018 02:13:18 UTC-4, Jan Mercl wrote: > > > On Mon, Mar 5, 2018 at 12:55 AM <ralphdo...@gmail.com <javascript:>> > wrote: > > > For my use case, I'll only be checking numbers > 2^18 and < 2^25. After > looking at the repo, it's not simple enough to copy primes.go, anyone that > wants to rely on it would have to fork the repo. > > No need to copy source code or fork the repository. `import > example.com/foo/bar` <http://example.com/foo/bar> and `$ go get > example.com/foo/bar` <http://example.com/foo/bar> is all what's need to > use a package in any program. > > -- > > -j >
I said anyone who wants to "rely" on it. i.e. not just today, but tomorrow, next month, and next year. Aside from official golang packages like golang.org/x/crypto, it's not safe to import 3rd party packages. The author/maintainer of the repository could delete it, it could be hit with a DMCA takedown, etc. -- 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.