This repository has been archived on 2022-03-09. You can view files and clone it, but cannot push or open issues or pull requests.
snoo2nebby/vendor/github.com/turnage/graw/streams/internal/rsort/commentcast.go

24 lines
573 B
Go

// This file was automatically generated by genny.
// Any changes will be lost if this file is regenerated.
// see https://github.com/cheekybits/genny
package rsort
import "github.com/turnage/graw/reddit"
type commentsThingImpl struct {
e *reddit.Comment
}
func (g commentsThingImpl) Name() string { return g.e.Name }
func (g commentsThingImpl) Birth() uint64 { return g.e.CreatedUTC }
func commentsAsThings(gs []*reddit.Comment) []redditThing {
things := make([]redditThing, len(gs))
for i, g := range gs {
things[i] = &commentsThingImpl{g}
}
return things
}