You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current library supports adding custom tags automatically but doesn't support auto adding custom tag options automatically. Can we add the following feature to auto add custom tag options along with custom tags?
Current library support:
execution of this command will generate following structs
protoc -I /usr/local/include \
-I . \
--gotag_out=auto="form-as-camel":. example/example.proto
Generated Go structs
type Foo struct {
Id string `form:"id"`
Name string `form:"name"`
Age int `form:"age"`
}
Requested feature
auto add custom tag options to "form" tag in above struct
Expected Generated Go structs
type Foo struct {
Id string `form:"id,omitempty,optional"`
Name string `form:"name,omitempty,optional"`
Age int `form:"age,omitempty,optional"`
}
The text was updated successfully, but these errors were encountered:
Is this issue still relevant?
Me, @ucpr and @mesmerx are embracing the project and planning both maintenance and evolution, so we would like to tidy up everything before working on new features. If the issue is not relevant anymore or we don't get a response in a few days, it will be closed, until we are ready to work on it.
The current library supports adding custom tags automatically but doesn't support auto adding custom tag options automatically. Can we add the following feature to auto add custom tag options along with custom tags?
Current library support:
Requested feature
The text was updated successfully, but these errors were encountered: