Skip to content

How to take default value of a field derived from other fields of same struct #11

@sandeepmachiraju

Description

@sandeepmachiraju

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions