Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Commit a428e35

Browse files
authored
fix goimports error in test.pb.go file. (#248)
- modified generate.sh to run goimports on generated file. - added additional line before generated comment to fix golint error in test.pb.go
1 parent 626e69e commit a428e35

2 files changed

Lines changed: 88 additions & 50 deletions

File tree

internal/testpb/generate.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
# generate .pb.go file from .proto file.
33
set -e
44
protoc --go_out=plugins=grpc:. test.proto
5-
echo '//go:generate ./generate.sh
5+
echo '
6+
//go:generate ./generate.sh
67
' >> test.pb.go
8+
goimports -w test.pb.go
79

internal/testpb/test.pb.go

Lines changed: 85 additions & 49 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)