Skip to content

Commit

Permalink
update option comment
Browse files Browse the repository at this point in the history
  • Loading branch information
xnzone committed Jul 11, 2023
1 parent c3af1f1 commit c6216d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/genapi/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ type CodeData struct {

type OptionData struct {
GoPackage string
Version string
}

// unexport 把首字母转小写
Expand Down
1 change: 1 addition & 0 deletions internal/genapi/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ func Gen(req *plugin.CodeGeneratorRequest) (*plugin.CodeGeneratorResponse, error
Content: proto.String(bs),
})
}
optdata.Version = Version
bs, err := buildOptionsCode(optdata)
if err != nil {
return nil, err
Expand Down

0 comments on commit c6216d3

Please sign in to comment.