Must all Golang imported packages be in $GOROOT or $GOPATH?

Written by
reddit
Link to Post

https://www.reddit.com/r/golang/comments/aw9cvy/must_all_golang_imported_packages_be_in_goroot_or/ by 

I’m having trouble figuring out why the Bookshelf tutorial has the bookshelf package(from book.go) in the parent directory. The app.yaml and app.go where package main is declared are in a a sub directory app/ . .

github.com/GoogleCloudPlatform/golang-samples/getting-started/bookshelf

submitted by /u/ImmodestPolitician
[link] [comments]

Article Tags:
· ·
Article Categories:
reddit

Comments are closed.