We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
actionBuilder := activity.NewActionBuilder(type.TransactionTransfer, from, to) actionBuilder.SetPlatform(decentralized.Platform1Inch) action, err := actionBuilder.Build() // Build and check all fields.
Using Activity and Action structures directly can easily lead to invalid or missing values in some fields, which can be avoided using builder pattern.
Activity
Action
No response
The text was updated successfully, but these errors were encountered:
This can ensure that the necessary fields are assigned at compile time, but the checks for the values of the fields are still at runtime.
Sorry, something went wrong.
kallydev
No branches or pull requests
What feature is it?
What problem does this feature solve?
Using
Activity
andAction
structures directly can easily lead to invalid or missing values in some fields, which can be avoided using builder pattern.Additional description
No response
This is not a duplicated feature request or new worker proposal
The text was updated successfully, but these errors were encountered: