Documentation
¶
Index ¶
- func NewFromNCM(n *ncm.NCM, filename string) error
- func SetMetadata(tag Tagger, imgData []byte, meta *ncm.MetadataMusic) error
- type Flac
- func (f *Flac) Save() error
- func (f *Flac) SetAlbum(album string) error
- func (f *Flac) SetArtist(artists []string) error
- func (f *Flac) SetComment(comment string) error
- func (f *Flac) SetCover(buf []byte, mime string) error
- func (f *Flac) SetCoverUrl(coverUrl string) error
- func (f *Flac) SetTitle(title string) error
- type Mp3
- func (m *Mp3) Save() error
- func (m *Mp3) SetAlbum(album string) error
- func (m *Mp3) SetArtist(artists []string) error
- func (m *Mp3) SetComment(comment string) error
- func (m *Mp3) SetCover(buf []byte, mime string) error
- func (m *Mp3) SetCoverUrl(coverUrl string) error
- func (m *Mp3) SetTitle(title string) error
- type Tagger
- type WAV
- func (m *WAV) Save() error
- func (m *WAV) SetAlbum(album string) error
- func (m *WAV) SetArtist(artists []string) error
- func (m *WAV) SetComment(comment string) error
- func (m *WAV) SetCover(buf []byte, mime string) error
- func (m *WAV) SetCoverUrl(coverUrl string) error
- func (m *WAV) SetTitle(title string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetMetadata ¶
func SetMetadata(tag Tagger, imgData []byte, meta *ncm.MetadataMusic) error
Types ¶
type Flac ¶
type Flac struct {
// contains filtered or unexported fields
}
func (*Flac) SetComment ¶
func (*Flac) SetCoverUrl ¶
type Mp3 ¶
type Mp3 struct {
// contains filtered or unexported fields
}
func (*Mp3) SetComment ¶
func (*Mp3) SetCoverUrl ¶
type Tagger ¶
type Tagger interface { SetCover(buf []byte, mime string) error SetCoverUrl(coverUrl string) error SetTitle(string) error SetAlbum(string) error SetArtist([]string) error SetComment(string) error Save() error // must be called }
Tagger interface for both mp3 and flac
Click to show internal directories.
Click to hide internal directories.