cmd/gf: gf gen pb
did not escape the backtick in dc
tag
#3882
Labels
bug
It is confirmed a bug, but don't worry, we'll handle it.
Go version
go1.23.2 linux/amd64
GoFrame version
2.7.4
Can this bug be reproduced with the latest release?
Option Yes
What did you do?
I run
df gen pb
in my project, where my.proto
file have field comments containing`
as below:What did you see happen?
It generate codes be like below:
It is a syntax error, and it will lead to a build failed.
What did you expect to see?
It should generate something as below, for excaping the backtick:
The text was updated successfully, but these errors were encountered: