Versions in this module Expand all Collapse all v1 v1.1.12 Jul 8, 2020 Changes in this version + func SortByTimestamp(v1, v2 *Video) bool + func SortByViews(v1, v2 *Video) bool + type By func(v1, v2 *Video) bool + func (by By) Sort(pl Playlist) + type Library struct + Paths map[string]*Path + Videos map[string]*Video + func NewLibrary() *Library + func (lib *Library) Add(fp string) error + func (lib *Library) AddPath(p *Path) error + func (lib *Library) Import(p *Path) error + func (lib *Library) Playlist() Playlist + func (lib *Library) Remove(fp string) + type Path struct + Path string + Prefix string + type Playlist []*Video + type Video struct + Album string + Description string + ID string + Modified string + Path string + Size int64 + Thumb []byte + ThumbType string + Timestamp time.Time + Title string + Views int64 + func ParseVideo(p *Path, name string) (*Video, error)