Versions in this module Expand all Collapse all v1 v1.0.1 Apr 28, 2022 v1.0.0 Mar 5, 2022 Changes in this version + func InStrings(slice []string, str string) bool + func ToCamelCase(s string, upper bool) string + func ToSnackCase(s string, upper bool) string + type Colors struct + func NewColors() *Colors + func (c *Colors) Pick() string + type Generator struct + func NewGenerator(opt Options) (*Generator, error) + func (g *Generator) Generate(w io.Writer) error + func (g *Generator) GenerateTransitionGraph(w io.Writer) error + type Options struct + ActionGraphOutputFile string + DisableGoGenerate bool + InputPackage string + OutputFile string + StateField string + Struct string + TransitionsFile string + type StateValue struct + Name string + Val string + type Struct struct + Name string + StateField string + StateType string + StateValues []StateValue + Transitions Transitions + func (s Struct) FindValue(str string) string + func (s Struct) Validate() error + type Transition struct + Actions []string + BeforeActions []string + Event string + From stringArray + To string + func (t Transition) String() string + type Transitions []Transition + func (trs Transitions) ActionTransitions(action string) []Transition + func (trs Transitions) Actions() []string + func (trs Transitions) Events() []string + func (trs Transitions) Graph() *graphman.Graph Other modules containing this package github.com/MrEhbr/go-fsm/v2