package main import ( "errors" "fmt" "reflect" ) type State interface { Name() string EnableSameTransit() bool OnBegin() OnEnd() CanTransitTo(name string) bool } func StateName(s State) st... Read More
package util import ( "fmt" "reflect" "regexp" "strconv" "strings" ) func floatToString(f float64) string { return strconv.FormatFloat(f, 'E', -1, 64) } func intToString(i int64) string { re... Read More