mirror of
https://github.com/crazybber/awesome-patterns.git
synced 2024-11-22 04:36:02 +03:00
demo on how to output string
This commit is contained in:
parent
fc102d573f
commit
df6196b7a1
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user