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
How can I get the default value of one field derived from other fields of same struct, For example:
type User struct {
Name string
FirstName string
LastName string
}
Here the default value of Name will be derived from FirstName and LastName i.e., Name = concat(FirstName,' ',LastName).
Is there any way to achieve this? @mcuadros Let me know
The text was updated successfully, but these errors were encountered:
How can I get the default value of one field derived from other fields of same struct, For example:
type User struct {
Name string
FirstName string
LastName string
}
Here the default value of Name will be derived from FirstName and LastName i.e., Name = concat(FirstName,' ',LastName).
Is there any way to achieve this? @mcuadros Let me know
The text was updated successfully, but these errors were encountered: