golint fixes
This commit is contained in:
parent
c3ea983498
commit
bd3bf33613
@ -177,7 +177,7 @@ func newImporter(source string) types.Importer {
|
|||||||
// }
|
// }
|
||||||
|
|
||||||
// stripGopath teks the directory to a package and remove the gopath to get the
|
// 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 {
|
func stripGopath(p string) string {
|
||||||
for _, gopath := range gopaths() {
|
for _, gopath := range gopaths() {
|
||||||
p = strings.TrimPrefix(p, path.Join(gopath, "src")+"/")
|
p = strings.TrimPrefix(p, path.Join(gopath, "src")+"/")
|
||||||
|
@ -2,6 +2,7 @@ package example
|
|||||||
|
|
||||||
import "context"
|
import "context"
|
||||||
|
|
||||||
|
// Person is a person.
|
||||||
type Person struct {
|
type Person struct {
|
||||||
ID string
|
ID string
|
||||||
Name string
|
Name string
|
||||||
@ -9,6 +10,7 @@ type Person struct {
|
|||||||
Website string
|
Website string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// PersonStore stores people.
|
||||||
type PersonStore interface {
|
type PersonStore interface {
|
||||||
Get(ctx context.Context, id string) (*Person, error)
|
Get(ctx context.Context, id string) (*Person, error)
|
||||||
Create(ctx context.Context, person *Person, confirm bool) error
|
Create(ctx context.Context, person *Person, confirm bool) error
|
||||||
|
Loading…
Reference in New Issue
Block a user