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
When run README.md tutorial is done, i write this code after turorial:
for _, action := range plan { switch a := action.(type) { case *MyAction: fmt.Println(a.Name) switch a.Name { case "eat": // do something case "sleep": // do something } } }
This right? and if i has more action (100+), the code will more long, has more good idea will quick do logical? thanks.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When run README.md tutorial is done, i write this code after turorial:
This right? and if i has more action (100+), the code will more long, has more good idea will quick do logical? thanks.
The text was updated successfully, but these errors were encountered: