Function StackCommon
Initiate Struct
Create a Struct instance with optional field values
Initiating a Struct allows you to create an instance of a defined Struct type. You can optionally assign values to its fields during initialization. If no value is provided, the fields are set to their zero values based on their types.
Config
- Struct Type – The predefined struct type to instantiate.
Select the struct type
(Optional) Pass raw or existing variables to auto-fill each field
For all types (except pointer types), zero values will be used by default.
For example, an empty string for string
, or 0
for int
.
Once the struct is created, you can:
- Access and read values from its fields
- Update individual fields
- Return the entire struct as a response