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
posted @ 2019-05-28 19:58 梦醒心晴 Views(815) Comments(0) Diggs(0) Edit
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
posted @ 2019-05-28 19:13 梦醒心晴 Views(2918) Comments(0) Diggs(0) Edit