Skip to content
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.

Commit

Permalink
update SetPaths doc
Browse files Browse the repository at this point in the history
  • Loading branch information
jmank88 authored Jun 25, 2017
1 parent 3fe0397 commit ac8ec85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions context.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ type Ctx struct {
Verbose bool // Enables more verbose logging.
}

// SetPaths sets the WorkingDir and GOPATHs fields. If GOPATHs are omitted, then
// the $GOPATH environment variable, and the default GOPATH are checked - in that order.
// SetPaths sets the WorkingDir and GOPATHs fields. If GOPATHs is empty, then
// the GOPATH environment variable (or the default GOPATH) is used instead.
func (c *Ctx) SetPaths(wd string, GOPATHs ...string) error {
if wd == "" {
return errors.New("cannot set Ctx.WorkingDir to an empty path")
Expand Down

0 comments on commit ac8ec85

Please sign in to comment.