Back to

Package flow

Latest Go to latest
Published: Aug 8, 2020 | License: MIT | Module:


Package Files

type ExitCode

type ExitCode int

ExitCode is a value used in a call to panic to signify that code execution should be stopped, before/after listeners executed and finally that the app whould exit with the provided exit code

type Step

type Step struct {
	Do      func()
	Success *Step
	Error   *Step
	Desc    string
	Exiter  func(code int)

Step is the building block of execution flow. It has a code block to run, a success step to go to if the former succeeds, or go to an error step otherwise

func (*Step) Run

func (s *Step) Run(p interface{})

Run call the code block of the step, moves to the success step if the call went ok, opr the the error step otherwise

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier