Skip to content
Jeremy Anderson edited this page Apr 13, 2016 · 3 revisions

Build Trouble

Cannot find package

If your go environment is brand new, you may encounter a 'cannot find package' error when building projects that import discordgo. If go can't find it, tell go to go get it.

For example, if you see this in your build output:

...cannot find package "golang.org/x/crypto/nacl/secretbox"...  

Run this to fix it:

go get golang.org/x/crypto/nacl/secretbox  
Clone this wiki locally