Skip to content
New issue

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

Adds v0.3.0 files to v0 module (#20) #21

Merged
merged 1 commit into from
Nov 19, 2024
Merged

Adds v0.3.0 files to v0 module (#20) #21

merged 1 commit into from
Nov 19, 2024

Conversation

TanmoySG
Copy link
Owner

This PR reinstates v0 of the GoStep library within the v0 sub module, to ensure backwards compatibility.


This pull request introduces significant changes to the go-steps library, including updates to the documentation and the addition of new examples, functions, and types for better functionality and error handling. The most important changes include updates to the README.md, new examples demonstrating the use of the library, and the introduction of new types and constants.

Documentation Updates:

  • README.md: Updated the note about breaking changes in go-steps v1 and provided guidance on how to continue using v0. Removed the "Help" section. [1] [2]

New Examples:

New Functions and Types:

  • v0/go_step_types.go: Introduced new types (StepName, StepFn, PossibleNextSteps, Step, stepArgChainingType) to define steps and their configurations.
  • v0/go_steps_constants.go: Added constants and variables for default and maximum step attempts, and argument chaining types.

Step Execution and Error Handling:

  • v0/go_steps.go: Implemented the Execute method for the Step type, including logic for step execution, argument resolution, and error handling with retries.
  • v0/go_steps_errors.go: Added error messages for unresolved steps.

Testing:

  • v0/go_steps_test.go: Added tests for step argument resolution, next step resolution, and retry logic.

@TanmoySG TanmoySG merged commit 7d2440f into main Nov 19, 2024
1 check passed
@TanmoySG TanmoySG deleted the v0-include branch November 19, 2024 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for v0
1 participant