github.com/asynkron/protoactor-go@v0.0.0-20240308120642-ef91a6abee75/actor/directive_string.go (about) 1 // Code generated by "stringer -type=Directive"; DO NOT EDIT 2 3 package actor 4 5 import "fmt" 6 7 //goland:noinspection GoSnakeCaseUsage 8 const _Directive_name = "ResumeDirectiveRestartDirectiveStopDirectiveEscalateDirective" 9 10 //goland:noinspection GoSnakeCaseUsage 11 var _Directive_index = [...]uint8{0, 15, 31, 44, 61} 12 13 func (i Directive) String() string { 14 if i < 0 || i >= Directive(len(_Directive_index)-1) { 15 return fmt.Sprintf("Directive(%d)", i) 16 } 17 return _Directive_name[_Directive_index[i]:_Directive_index[i+1]] 18 }