package entries import "git.leonardobishop.net/stash/pkg/database/sqlc" type EntryRow struct { Title string `json:"title"` Url string `json:"url"` Description string `json:"description"` Timestamp string `json:"timestamp"` KindName string `json:"kind_name"` KindEmoji string `json:"kind_emoji"` } func (dst *EntryRow) ScanGetEntriesByKindRow(src sqlc.GetEntriesByKindRow) { dst.Title = src.Title dst.Url = src.Url dst.Description = src.Description dst.Timestamp = src.Timestamp dst.KindName = src.KindName dst.KindEmoji = src.KindEmoji } func (dst *EntryRow) ScanGetEntriesRow(src sqlc.GetEntriesRow) { dst.Title = src.Title dst.Url = src.Url dst.Description = src.Description dst.Timestamp = src.Timestamp dst.KindName = src.KindName dst.KindEmoji = src.KindEmoji }