*: golint

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
Vincent Batts 2017-01-29 15:54:47 -05:00
parent e646c9daef
commit c5585b2c1d
Signed by: vbatts
GPG Key ID: 10937E57733F1362
2 changed files with 5 additions and 0 deletions

View File

@ -8,6 +8,7 @@ import (
"../changelog"
)
// Repo represents a remote slackware software repo
type Repo struct {
URL string
}
@ -16,6 +17,8 @@ func (r Repo) get(file string) (*http.Response, error) {
return http.Get(r.URL + "/" + file)
}
// ChangeLog fetches the ChangeLog.txt for this remote Repo, along with the
// last-modified (for comparisons).
func (r Repo) ChangeLog() (e []changelog.Entry, mtime time.Time, err error) {
resp, err := r.get("ChangeLog.txt")
if err != nil {

View File

@ -5,6 +5,8 @@ import (
"path/filepath"
)
// FindFiles is a convenience for walk a directory tree for a particular file
// name.
func FindFiles(root, name string) (paths []string, err error) {
paths = []string{}
err = filepath.Walk(root, func(path string, info os.FileInfo, err error) error {