Cleaning up some issues detected by golint.
diff --git a/cmd/godeps.go b/cmd/godeps.go
index 11524e3..5c75aa5 100644
--- a/cmd/godeps.go
+++ b/cmd/godeps.go
@@ -32,6 +32,7 @@
Rev string // VCS-specific commit ID.
}
+// HasGodepGodeps is a command to detect if a package contains a Godeps.json file.
func HasGodepGodeps(c cookoo.Context, p *cookoo.Params) (interface{}, cookoo.Interrupt) {
dir := cookoo.GetString("dir", "", p)
path := filepath.Join(dir, "Godeps/Godeps.json")
@@ -39,7 +40,7 @@
return err == nil, nil
}
-// Parse the Godep Godeps.json file.
+// ParseGodepGodeps parses the Godep Godeps.json file.
//
// Params:
// - dir (string): the project's directory
diff --git a/cmd/util.go b/cmd/util.go
index 4c83cf6..b445f2d 100644
--- a/cmd/util.go
+++ b/cmd/util.go
@@ -98,7 +98,7 @@
return false, err
}
-// GoPath Get GOPATH from environment and return the most relevant path.
+// Gopath gets GOPATH from environment and return the most relevant path.
//
// A GOPATH can contain a colon-separated list of paths. This retrieves the
// GOPATH and returns only the FIRST ("most relevant") path.
@@ -108,6 +108,9 @@
func Gopath() string {
return Gopaths()[0]
}
+
+// Gopaths retrieves the Gopath as a list when there is more than one path
+// listed in the Gopath.
func Gopaths() []string {
p := os.Getenv("GOPATH")
ps := filepath.SplitList(p)
diff --git a/cmd/yaml.go b/cmd/yaml.go
index 551e0ec..c2dd613 100644
--- a/cmd/yaml.go
+++ b/cmd/yaml.go
@@ -435,6 +435,8 @@
return dep, nil
}
+// GetRepo retrieves a Masterminds/vcs repo object configured for the root
+// of the package being retrieved.
func (d *Dependency) GetRepo(dest string) (v.Repo, error) {
// The remote location is either the configured repo or the package