chore: lint
This commit is contained in:
		| @@ -5,8 +5,8 @@ import ( | ||||
| 	"fmt" | ||||
|  | ||||
| 	"github.com/go-kit/kit/endpoint" | ||||
| 	pb "moul.io/protoc-gen-gotemplate/examples/go-kit/services/session/gen/pb" | ||||
| 	oldcontext "golang.org/x/net/context" | ||||
| 	pb "moul.io/protoc-gen-gotemplate/examples/go-kit/services/session/gen/pb" | ||||
| ) | ||||
|  | ||||
| var _ = endpoint.Chain | ||||
|   | ||||
| @@ -5,8 +5,8 @@ import ( | ||||
| 	"fmt" | ||||
|  | ||||
| 	"github.com/go-kit/kit/endpoint" | ||||
| 	pb "moul.io/protoc-gen-gotemplate/examples/go-kit/services/sprint/gen/pb" | ||||
| 	oldcontext "golang.org/x/net/context" | ||||
| 	pb "moul.io/protoc-gen-gotemplate/examples/go-kit/services/sprint/gen/pb" | ||||
| ) | ||||
|  | ||||
| var _ = endpoint.Chain | ||||
|   | ||||
| @@ -5,8 +5,8 @@ import ( | ||||
| 	"fmt" | ||||
|  | ||||
| 	"github.com/go-kit/kit/endpoint" | ||||
| 	pb "moul.io/protoc-gen-gotemplate/examples/go-kit/services/user/gen/pb" | ||||
| 	oldcontext "golang.org/x/net/context" | ||||
| 	pb "moul.io/protoc-gen-gotemplate/examples/go-kit/services/user/gen/pb" | ||||
| ) | ||||
|  | ||||
| var _ = endpoint.Chain | ||||
|   | ||||
| @@ -2,39 +2,25 @@ | ||||
| package company | ||||
|  | ||||
| import ( | ||||
| 	"context" | ||||
|  | ||||
| 	"moul.io/protoc-gen-gotemplate/examples/import/output/models/article" | ||||
|     "moul.io/protoc-gen-gotemplate/examples/import/output/models/common" | ||||
| 	"moul.io/protoc-gen-gotemplate/examples/import/output/models/common" | ||||
| ) | ||||
|  | ||||
| type Repository interface { | ||||
|      GetArticle(getarticle *common.GetArticle ) (*company.Article, []*company.Storage,  error) | ||||
| 	GetArticle(getarticle *common.GetArticle) (*company.Article, []*company.Storage, error) | ||||
| } | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
| // ------------------------- Public SDK ----------------------------- | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
| // GetArticle : proto: missing extension proto: missing extension | ||||
| func (sdk *Sdk) GetArticle(ctx context.Context, | ||||
|   getarticle *article.GetArticle, token, requestID string)(article *article.Article, storages []*article.GetArticleResponse_Storage, err error) { | ||||
| 	getarticle *article.GetArticle, token, requestID string) (article *article.Article, storages []*article.GetArticleResponse_Storage, err error) { | ||||
|  | ||||
|   out := &pb.GetArticleResponse{} | ||||
| 	out := &pb.GetArticleResponse{} | ||||
| 	_ = out | ||||
|  | ||||
|  | ||||
|   return out.Article, out.Storages, nil | ||||
| 	return out.Article, out.Storages, nil | ||||
|  | ||||
| } | ||||
|  | ||||
|   | ||||
|   | ||||
|   | ||||
| @@ -4,8 +4,8 @@ package bbb | ||||
| import ( | ||||
| 	"fmt" | ||||
|  | ||||
| 	"moul.io/protoc-gen-gotemplate/examples/single-package-mode/output/aaa" | ||||
| 	"golang.org/x/net/context" | ||||
| 	"moul.io/protoc-gen-gotemplate/examples/single-package-mode/output/aaa" | ||||
| ) | ||||
|  | ||||
| type Service struct{} | ||||
|   | ||||
| @@ -2,9 +2,9 @@ | ||||
| package foo | ||||
|  | ||||
| import ( | ||||
|     "github.com/golang/protobuf/ptypes/timestamp" | ||||
| 	"github.com/golang/protobuf/ptypes/timestamp" | ||||
| ) | ||||
|  | ||||
| type Repository interface { | ||||
|      GetFoo(timestamp *timestamp.Timestamp ) (*timestamp.Timestamp,  error) | ||||
| 	GetFoo(timestamp *timestamp.Timestamp) (*timestamp.Timestamp, error) | ||||
| } | ||||
| @@ -283,12 +283,12 @@ func samePath(a, b []int32) bool { | ||||
| 	return true | ||||
| } | ||||
|  | ||||
| func findSourceInfoLocation(i interface{}) *descriptor.SourceCodeInfo_Location { | ||||
| /*func findSourceInfoLocation(i interface{}) *descriptor.SourceCodeInfo_Location { | ||||
| 	if pathMap == nil { | ||||
| 		return nil | ||||
| 	} | ||||
| 	return pathMap[i] | ||||
| } | ||||
| }*/ | ||||
|  | ||||
| func leadingComment(i interface{}) string { | ||||
| 	loc := pathMap[i] | ||||
|   | ||||
		Reference in New Issue
	
	Block a user