Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
You must put quotes around
fmt
. Not a kata issue.I don't do Go, so I wouldn't know :P
Now you know what you have to do (and it is explicitly stated in the description).
It's normal
fmt
shows an empty slice when printingnil
here: in this casenil
is the value of an uninitialized container (and has length 0...). Go subtleties...Looking at the tests suite, actually the last test you see is with 2
nil
inputs. Not sure why your code prints them as[]
math.Trunc
returns a float64.