From 06f6dc9937e0a073074afdc31d334f3ef6c49e53 Mon Sep 17 00:00:00 2001 From: Kevin Wan Date: Mon, 8 Feb 2021 22:31:52 +0800 Subject: [PATCH] fix golint issues, package comments (#454) --- core/discov/internal/etcdclient.go | 1 + core/discov/internal/updatelistener.go | 1 + core/stores/mongo/internal/collection.go | 1 + core/stores/mongo/iter.go | 1 + tools/goctl/model/sql/test/orm.go | 1 + tools/goctl/model/sql/test/sqlconn.go | 1 + tools/goctl/model/sql/test/utils.go | 1 + 7 files changed, 7 insertions(+) diff --git a/core/discov/internal/etcdclient.go b/core/discov/internal/etcdclient.go index f1f37914..b3ade160 100644 --- a/core/discov/internal/etcdclient.go +++ b/core/discov/internal/etcdclient.go @@ -1,4 +1,5 @@ //go:generate mockgen -package internal -destination etcdclient_mock.go -source etcdclient.go EtcdClient + package internal import ( diff --git a/core/discov/internal/updatelistener.go b/core/discov/internal/updatelistener.go index b1bbcd3e..645469f3 100644 --- a/core/discov/internal/updatelistener.go +++ b/core/discov/internal/updatelistener.go @@ -1,4 +1,5 @@ //go:generate mockgen -package internal -destination updatelistener_mock.go -source updatelistener.go UpdateListener + package internal type ( diff --git a/core/stores/mongo/internal/collection.go b/core/stores/mongo/internal/collection.go index c6ca237d..054239a1 100644 --- a/core/stores/mongo/internal/collection.go +++ b/core/stores/mongo/internal/collection.go @@ -1,4 +1,5 @@ //go:generate mockgen -package internal -destination collection_mock.go -source collection.go + package internal import "github.com/globalsign/mgo" diff --git a/core/stores/mongo/iter.go b/core/stores/mongo/iter.go index dcedf982..a664b303 100644 --- a/core/stores/mongo/iter.go +++ b/core/stores/mongo/iter.go @@ -1,4 +1,5 @@ //go:generate mockgen -package mongo -destination iter_mock.go -source iter.go Iter + package mongo import ( diff --git a/tools/goctl/model/sql/test/orm.go b/tools/goctl/model/sql/test/orm.go index dadfaa75..022120a0 100644 --- a/tools/goctl/model/sql/test/orm.go +++ b/tools/goctl/model/sql/test/orm.go @@ -1,4 +1,5 @@ // copy from core/stores/sqlx/orm.go + package mocksql import ( diff --git a/tools/goctl/model/sql/test/sqlconn.go b/tools/goctl/model/sql/test/sqlconn.go index dc6efc40..5ecc5b62 100644 --- a/tools/goctl/model/sql/test/sqlconn.go +++ b/tools/goctl/model/sql/test/sqlconn.go @@ -1,4 +1,5 @@ // copy from core/stores/sqlx/sqlconn.go + package mocksql import ( diff --git a/tools/goctl/model/sql/test/utils.go b/tools/goctl/model/sql/test/utils.go index 95a9d9d1..c646a5ff 100644 --- a/tools/goctl/model/sql/test/utils.go +++ b/tools/goctl/model/sql/test/utils.go @@ -1,4 +1,5 @@ // copy from core/stores/sqlx/utils.go + package mocksql import (