19 lines
246 B
Go
Raw Normal View History

package scraper
import (
"path"
)
2021-08-01 15:52:04 -07:00
type ImageID int
type Image struct {
2021-08-01 15:52:04 -07:00
ID ImageID
TweetID TweetID
Filename string
IsDownloaded bool
}
func (img Image) FilenameWhenDownloaded() string {
return path.Base(img.Filename)
}