Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Go Language

`go get github.com/golang/example/stringutil` doesn't work in the treehouse workspace as it does in the video.

I get the following log:

treehouse:~/workspace$ go get github.com/golang/example/stringutil                                                                                                                                                                               
# cd .; git clone https://github.com/golang/example /home/treehouse/workspace/src/github.com/golang/example                                                                                                                                      
Cloning into '/home/treehouse/workspace/src/github.com/golang/example'...                                                                                                                                                                        
fatal: Unable to create temporary file '/home/treehouse/workspace/src/github.com/golang/example/.git/objects/pack/tmp_pack_XXXXXX': Permission denied                                                                                            
fatal: index-pack failed                                                                                                                                                                                                                         
package github.com/golang/example/stringutil: exit status 128

Download and storing package code Around the 6 min mark.

Can you post a link to the video?

1 Answer

That is probably a question for support since I don't think you can make the changes necessary to get it to work. I was however able to download go and run the course code locally. Current go version is 1.14. Treehouse has:

treehouse:~/workspace$ go version                                    
go version go1.6.2 linux/amd64