Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func init() {
- if user == "" {
- log.Fatal("$USER not set")
- }
- if home == "" {
- home = "/home/" + user
- }
- if gopath == "" {
- gopath = home + "/go"
- }
- // gopath may be overridden by --gopath flag on command line.
- flag.StringVar(&gopath, "gopath", gopath, "override default GOPATH")
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement