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
At the moment my generated model struct only contains a json tag. Is there a way to automatically add a db tag as well? If not, could this functionality be added?
For example:
type NewPet struct {
// chip
Chip string `json:"chip,omitempty" db:"chip"`
// name
// Required: true
Name *string `json:"name" db:"name"`
// tag
Tag string `json:"tag,omitempty" db:"tag"`
}
The text was updated successfully, but these errors were encountered:
Problem statement
At the moment my generated model struct only contains a json tag. Is there a way to automatically add a db tag as well? If not, could this functionality be added?
For example:
The text was updated successfully, but these errors were encountered: