Closed Sefriol closed 6 years ago
Small thing, but lines 38-40
func (c Comment) String() string { return fmt.Sprintf("%s (%d/%d): %s", c.Author, c.UpVotes, c.DownVotes, c.Body) }
Probably should be like this:
func (c Comment) String() string { return fmt.Sprintf("%s (%.0f/%.0f): %s", c.Author, c.UpVotes, c.DownVotes, c.Body) }
Atm it prints out float64=number, which is kind hard to read :)
Fixed in pull request #41
Small thing, but lines 38-40
Probably should be like this:
Atm it prints out float64=number, which is kind hard to read :)