From df6196b7a102237cc23ae4f709038c8b0d5bc4b5 Mon Sep 17 00:00:00 2001 From: "jian.han" Date: Fri, 19 Jan 2018 15:17:32 +1000 Subject: [PATCH] demo on how to output string --- idiom/iota_const/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/idiom/iota_const/main.go b/idiom/iota_const/main.go index 6f94d86..411ee6e 100644 --- a/idiom/iota_const/main.go +++ b/idiom/iota_const/main.go @@ -17,6 +17,6 @@ var feedLockLinkTypes = [...]string{ func (f FeedLockLinkType) String() string { return feedLockLinkTypes[f] } func main() { - test := FeedLockLinkType(Racing) + test := FeedLockLinkType(Racing).String() spew.Dump(test) }