From bd3bf336133bdc4b29143db6ff1d15ea16f4b564 Mon Sep 17 00:00:00 2001 From: Mat Ryer Date: Wed, 2 Aug 2017 16:05:40 +0100 Subject: [PATCH] golint fixes --- pkg/moq/importer.go | 2 +- pkg/moq/testpackages/example/example.go | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/moq/importer.go b/pkg/moq/importer.go index 1445459..07747b8 100644 --- a/pkg/moq/importer.go +++ b/pkg/moq/importer.go @@ -177,7 +177,7 @@ func newImporter(source string) types.Importer { // } // stripGopath teks the directory to a package and remove the gopath to get the -// cannonical package name +// canonical package name. func stripGopath(p string) string { for _, gopath := range gopaths() { p = strings.TrimPrefix(p, path.Join(gopath, "src")+"/") diff --git a/pkg/moq/testpackages/example/example.go b/pkg/moq/testpackages/example/example.go index c7a19d7..ee9a5d5 100644 --- a/pkg/moq/testpackages/example/example.go +++ b/pkg/moq/testpackages/example/example.go @@ -2,6 +2,7 @@ package example import "context" +// Person is a person. type Person struct { ID string Name string @@ -9,6 +10,7 @@ type Person struct { Website string } +// PersonStore stores people. type PersonStore interface { Get(ctx context.Context, id string) (*Person, error) Create(ctx context.Context, person *Person, confirm bool) error