gofmt
This commit is contained in:
parent
fb43dd02b6
commit
536e49c8ac
1 changed files with 3 additions and 3 deletions
6
feed.go
6
feed.go
|
@ -97,9 +97,9 @@ func buildFeed(feed *Feed, nick, data string) error {
|
||||||
func printFeed(feed *Feed, max int64) {
|
func printFeed(feed *Feed, max int64) {
|
||||||
sort.Sort(*feed)
|
sort.Sort(*feed)
|
||||||
for i, entry := range *feed {
|
for i, entry := range *feed {
|
||||||
if int64(i) >= max {
|
if int64(i) >= max {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
fmt.Printf("[%s] <%s> %s\n", entry.Timestamp.Format(time.Stamp), entry.Nick, entry.Post)
|
fmt.Printf("[%s] <%s> %s\n", entry.Timestamp.Format(time.Stamp), entry.Nick, entry.Post)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue