demo on how to output string

This commit is contained in:
jian.han 2018-01-19 15:17:32 +10:00
parent fc102d573f
commit df6196b7a1

View File

@ -17,6 +17,6 @@ var feedLockLinkTypes = [...]string{
func (f FeedLockLinkType) String() string { return feedLockLinkTypes[f] } func (f FeedLockLinkType) String() string { return feedLockLinkTypes[f] }
func main() { func main() {
test := FeedLockLinkType(Racing) test := FeedLockLinkType(Racing).String()
spew.Dump(test) spew.Dump(test)
} }