package homeview import "github.com/tigorlazuardi/redmage/models" import "github.com/tigorlazuardi/redmage/api/reddit" import "fmt" import "github.com/tigorlazuardi/redmage/views/utils" type ImageCardOption uint func (o ImageCardOption) Has(opt ImageCardOption) bool { return o&opt != 0 } const ( HideTitle ImageCardOption = 1 << iota HideDescription HideSubreddit HidePoster ) templ RecentlyAddedImageCard(data *models.Image, opts ImageCardOption) {