Skip to content

Commit c6216d3

Browse files
committed
update option comment
1 parent c3af1f1 commit c6216d3

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

internal/genapi/data.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ type CodeData struct {
4646

4747
type OptionData struct {
4848
GoPackage string
49+
Version string
4950
}
5051

5152
// unexport 把首字母转小写

internal/genapi/gen.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ func Gen(req *plugin.CodeGeneratorRequest) (*plugin.CodeGeneratorResponse, error
4747
Content: proto.String(bs),
4848
})
4949
}
50+
optdata.Version = Version
5051
bs, err := buildOptionsCode(optdata)
5152
if err != nil {
5253
return nil, err

0 commit comments

Comments
 (0)