Documentation
¶
Index ¶
- Constants
- Variables
- func ByteToInt(data []byte) int
- func ByteToIntSynchsafe(data []byte) int
- func DecodeString(b []byte, encoding string) (string, error)
- func DecodeUTF16(b []byte) (string, error)
- func DecodeUTF16BE(b []byte) (string, error)
- func GetBit(data byte, index byte) byte
- func GetEncoding(code byte) string
- func GetMap(metadata Metadata) map[string]interface{}
- func GetString(b []byte) (string, error)
- func IntToByteSynchsafe(data int) []byte
- func SetBit(data *byte, bit bool, index byte)
- func SetString(value string) []byte
- func SplitBytesWithTextDescription(data []byte, encoding string) [][]byte
- func TextEncoding(b []byte) string
- type AttachedPicture
- type DeleteMetadata
- type FLAC
- func (flac *FLAC) DeleteAlbum() error
- func (flac *FLAC) DeleteAlbumArtist() error
- func (flac *FLAC) DeleteAll() error
- func (flac *FLAC) DeleteArranger() error
- func (flac *FLAC) DeleteArtist() error
- func (flac *FLAC) DeleteAuthor() error
- func (flac *FLAC) DeleteBPM() error
- func (flac *FLAC) DeleteCatalogNumber() error
- func (flac *FLAC) DeleteComment() error
- func (flac *FLAC) DeleteCompilation() error
- func (flac *FLAC) DeleteComposer() error
- func (flac *FLAC) DeleteConductor() error
- func (flac *FLAC) DeleteCopyright() error
- func (flac *FLAC) DeleteDate() error
- func (flac *FLAC) DeleteDescription() error
- func (flac *FLAC) DeleteDiscNumber() error
- func (flac *FLAC) DeleteEncodedBy() error
- func (flac *FLAC) DeleteGenre() error
- func (flac *FLAC) DeletePicture() error
- func (flac *FLAC) DeleteTitle() error
- func (flac *FLAC) DeleteTrackNumber() error
- func (flac *FLAC) DeleteYear() error
- func (flac *FLAC) GetAlbum() (string, error)
- func (flac *FLAC) GetAlbumArtist() (string, error)
- func (flac *FLAC) GetAllTagNames() []string
- func (flac *FLAC) GetArranger() (string, error)
- func (flac *FLAC) GetArtist() (string, error)
- func (flac *FLAC) GetAuthor() (string, error)
- func (flac *FLAC) GetBPM() (int, error)
- func (flac *FLAC) GetCatalogNumber() (string, error)
- func (flac *FLAC) GetComment() (string, error)
- func (flac *FLAC) GetCompilation() (string, error)
- func (flac *FLAC) GetComposer() (string, error)
- func (flac *FLAC) GetConductor() (string, error)
- func (flac *FLAC) GetCopyright() (string, error)
- func (flac *FLAC) GetDate() (time.Time, error)
- func (flac *FLAC) GetDescription() (string, error)
- func (flac *FLAC) GetDiscNumber() (int, int, error)
- func (flac *FLAC) GetEncodedBy() (string, error)
- func (flac *FLAC) GetFileData() []byte
- func (flac *FLAC) GetGenre() (string, error)
- func (flac *FLAC) GetMetadataBlockPicture() (*FlacMetadataBlockPicture, error)
- func (flac *FLAC) GetPicture() (image.Image, error)
- func (flac *FLAC) GetTitle() (string, error)
- func (flac *FLAC) GetTrackNumber() (int, int, error)
- func (flac *FLAC) GetVersion() Version
- func (flac *FLAC) GetVorbisComment(key string) (string, error)
- func (flac *FLAC) GetVorbisCommentInt(key string) (int, error)
- func (flac *FLAC) GetVorbisCommentTime(key string) (time.Time, error)
- func (flac *FLAC) GetYear() (int, error)
- func (flac *FLAC) Save(input io.WriteSeeker) error
- func (flac *FLAC) SaveFile(path string) error
- func (flac *FLAC) SetAlbum(album string) error
- func (flac *FLAC) SetAlbumArtist(albumArtist string) error
- func (flac *FLAC) SetArranger(arranger string) error
- func (flac *FLAC) SetArtist(artist string) error
- func (flac *FLAC) SetAuthor(author string) error
- func (flac *FLAC) SetBPM(bmp int) error
- func (flac *FLAC) SetCatalogNumber(catalogNumber string) error
- func (flac *FLAC) SetComment(comment string) error
- func (flac *FLAC) SetCompilation(compilation string) error
- func (flac *FLAC) SetComposer(composer string) error
- func (flac *FLAC) SetConductor(conductor string) error
- func (flac *FLAC) SetCopyright(copyright string) error
- func (flac *FLAC) SetDate(date time.Time) error
- func (flac *FLAC) SetDescription(description string) error
- func (flac *FLAC) SetDiscNumber(number int, total int) error
- func (flac *FLAC) SetEncodedBy(encodedBy string) error
- func (flac *FLAC) SetGenre(genre string) error
- func (flac *FLAC) SetPicture(picture image.Image) error
- func (flac *FLAC) SetTitle(title string) error
- func (flac *FLAC) SetTrackNumber(number int, total int) error
- func (flac *FLAC) SetYear(year int) error
- type FlacMetadataBlock
- type FlacMetadataBlockPicture
- type FlacMetadataBlockType
- type Genre
- type GetMetadata
- type ID3v1
- func (id3v1 *ID3v1) DeleteAlbum() error
- func (id3v1 *ID3v1) DeleteAlbumArtist() error
- func (id3v1 *ID3v1) DeleteAll() error
- func (id3v1 *ID3v1) DeleteArranger() error
- func (id3v1 *ID3v1) DeleteArtist() error
- func (id3v1 *ID3v1) DeleteAuthor() error
- func (id3v1 *ID3v1) DeleteBPM() error
- func (id3v1 *ID3v1) DeleteCatalogNumber() error
- func (id3v1 *ID3v1) DeleteComment() error
- func (id3v1 *ID3v1) DeleteCompilation() error
- func (id3v1 *ID3v1) DeleteComposer() error
- func (id3v1 *ID3v1) DeleteConductor() error
- func (id3v1 *ID3v1) DeleteCopyright() error
- func (id3v1 *ID3v1) DeleteDate() error
- func (id3v1 *ID3v1) DeleteDescription() error
- func (id3v1 *ID3v1) DeleteDiscNumber() error
- func (id3v1 *ID3v1) DeleteEncodedBy() error
- func (id3v1 *ID3v1) DeleteGenre() error
- func (id3v1 *ID3v1) DeletePicture() error
- func (id3v1 *ID3v1) DeleteTitle() error
- func (id3v1 *ID3v1) DeleteTrackNumber() error
- func (id3v1 *ID3v1) DeleteYear() error
- func (id3v1 *ID3v1) GetAlbum() (string, error)
- func (id3v1 *ID3v1) GetAlbumArtist() (string, error)
- func (id3v1 *ID3v1) GetAllTagNames() []string
- func (id3v1 *ID3v1) GetArranger() (string, error)
- func (id3v1 *ID3v1) GetArtist() (string, error)
- func (id3v1 *ID3v1) GetAuthor() (string, error)
- func (id3v1 *ID3v1) GetBPM() (int, error)
- func (id3v1 *ID3v1) GetCatalogNumber() (string, error)
- func (id3v1 *ID3v1) GetComment() (string, error)
- func (id3v1 *ID3v1) GetCompilation() (string, error)
- func (id3v1 *ID3v1) GetComposer() (string, error)
- func (id3v1 *ID3v1) GetConductor() (string, error)
- func (id3v1 *ID3v1) GetCopyright() (string, error)
- func (id3v1 *ID3v1) GetDate() (time.Time, error)
- func (id3v1 *ID3v1) GetDescription() (string, error)
- func (id3v1 *ID3v1) GetDiscNumber() (int, int, error)
- func (id3v1 *ID3v1) GetEncodedBy() (string, error)
- func (id3v1 *ID3v1) GetFileData() []byte
- func (id3v1 *ID3v1) GetGenre() (string, error)
- func (id3v1 *ID3v1) GetPicture() (image.Image, error)
- func (id3v1 *ID3v1) GetTitle() (string, error)
- func (id3v1 *ID3v1) GetTrackNumber() (int, int, error)
- func (id3v1 *ID3v1) GetVersion() Version
- func (id3v1 *ID3v1) GetYear() (int, error)
- func (id3v1 *ID3v1) Save(input io.WriteSeeker) error
- func (id3v1 *ID3v1) SaveFile(path string) error
- func (id3v1 *ID3v1) SetAlbum(album string) error
- func (id3v1 *ID3v1) SetAlbumArtist(albumArtist string) error
- func (id3v1 *ID3v1) SetArranger(arranger string) error
- func (id3v1 *ID3v1) SetArtist(artist string) error
- func (id3v1 *ID3v1) SetAuthor(author string) error
- func (id3v1 *ID3v1) SetBPM(bmp int) error
- func (id3v1 *ID3v1) SetCatalogNumber(catalogNumber string) error
- func (id3v1 *ID3v1) SetComment(comment string) error
- func (id3v1 *ID3v1) SetCompilation(compilation string) error
- func (id3v1 *ID3v1) SetComposer(composer string) error
- func (id3v1 *ID3v1) SetConductor(conductor string) error
- func (id3v1 *ID3v1) SetCopyright(copyright string) error
- func (id3v1 *ID3v1) SetDate(date time.Time) error
- func (id3v1 *ID3v1) SetDescription(description string) error
- func (id3v1 *ID3v1) SetDiscNumber(number int, total int) error
- func (id3v1 *ID3v1) SetEncodedBy(encodedBy string) error
- func (id3v1 *ID3v1) SetGenre(genre string) error
- func (id3v1 *ID3v1) SetPicture(picture image.Image) error
- func (id3v1 *ID3v1) SetTitle(title string) error
- func (id3v1 *ID3v1) SetTrackNumber(number int, total int) error
- func (id3v1 *ID3v1) SetYear(year int) error
- func (id3v1 *ID3v1) String() string
- type ID3v22
- func (id3v2 *ID3v22) DeleteAlbum() error
- func (id3v2 *ID3v22) DeleteAlbumArtist() error
- func (id3v2 *ID3v22) DeleteAll() error
- func (id3v2 *ID3v22) DeleteArranger() error
- func (id3v2 *ID3v22) DeleteArtist() error
- func (id3v2 *ID3v22) DeleteAuthor() error
- func (id3v2 *ID3v22) DeleteBPM() error
- func (id3v2 *ID3v22) DeleteCatalogNumber() error
- func (id3v2 *ID3v22) DeleteComment() error
- func (id3v2 *ID3v22) DeleteCompilation() error
- func (id3v2 *ID3v22) DeleteComposer() error
- func (id3v2 *ID3v22) DeleteConductor() error
- func (id3v2 *ID3v22) DeleteCopyright() error
- func (id3v2 *ID3v22) DeleteDate() error
- func (id3v2 *ID3v22) DeleteDescription() error
- func (id3v2 *ID3v22) DeleteDiscNumber() error
- func (id3v2 *ID3v22) DeleteEncodedBy() error
- func (id3v2 *ID3v22) DeleteGenre() error
- func (id3v2 *ID3v22) DeletePicture() error
- func (id3v2 *ID3v22) DeleteTitle() error
- func (id3v2 *ID3v22) DeleteTrackNumber() error
- func (id3v2 *ID3v22) DeleteYear() error
- func (id3v2 *ID3v22) GetAlbum() (string, error)
- func (id3v2 *ID3v22) GetAlbumArtist() (string, error)
- func (id3v2 *ID3v22) GetAllTagNames() []string
- func (id3v2 *ID3v22) GetArranger() (string, error)
- func (id3v2 *ID3v22) GetArtist() (string, error)
- func (id3v2 *ID3v22) GetAttachedPicture() (*AttachedPicture, error)
- func (id3v2 *ID3v22) GetAuthor() (string, error)
- func (id3v2 *ID3v22) GetBPM() (int, error)
- func (id3v2 *ID3v22) GetBytes(name string) ([]byte, error)
- func (id3v2 *ID3v22) GetCatalogNumber() (string, error)
- func (id3v2 *ID3v22) GetComment() (string, error)
- func (id3v2 *ID3v22) GetCompilation() (string, error)
- func (id3v2 *ID3v22) GetComposer() (string, error)
- func (id3v2 *ID3v22) GetConductor() (string, error)
- func (id3v2 *ID3v22) GetCopyright() (string, error)
- func (id3v2 *ID3v22) GetDate() (time.Time, error)
- func (id3v2 *ID3v22) GetDescription() (string, error)
- func (id3v2 *ID3v22) GetDiscNumber() (int, int, error)
- func (id3v2 *ID3v22) GetEncodedBy() (string, error)
- func (id3v2 *ID3v22) GetFileData() []byte
- func (id3v2 *ID3v22) GetGenre() (string, error)
- func (id3v2 *ID3v22) GetPicture() (image.Image, error)
- func (id3v2 *ID3v22) GetString(name string) (string, error)
- func (id3v2 *ID3v22) GetTitle() (string, error)
- func (id3v2 *ID3v22) GetTrackNumber() (int, int, error)
- func (id3v2 *ID3v22) GetVersion() Version
- func (id3v2 *ID3v22) GetYear() (int, error)
- func (id3v2 *ID3v22) Save(input io.WriteSeeker) error
- func (id3v2 *ID3v22) SaveFile(path string) error
- func (id3v2 *ID3v22) SetAlbum(album string) error
- func (id3v2 *ID3v22) SetAlbumArtist(albumArtist string) error
- func (id3v2 *ID3v22) SetArranger(arranger string) error
- func (id3v2 *ID3v22) SetArtist(artist string) error
- func (id3v2 *ID3v22) SetAuthor(author string) error
- func (id3v2 *ID3v22) SetBPM(bmp int) error
- func (id3v2 *ID3v22) SetCatalogNumber(catalogNumber string) error
- func (id3v2 *ID3v22) SetComment(comment string) error
- func (id3v2 *ID3v22) SetCompilation(compilation string) error
- func (id3v2 *ID3v22) SetComposer(composer string) error
- func (id3v2 *ID3v22) SetConductor(conductor string) error
- func (id3v2 *ID3v22) SetCopyright(copyright string) error
- func (id3v2 *ID3v22) SetDate(date time.Time) error
- func (id3v2 *ID3v22) SetDescription(description string) error
- func (id3v2 *ID3v22) SetDiscNumber(number int, total int) error
- func (id3v2 *ID3v22) SetEncodedBy(encodedBy string) error
- func (id3v2 *ID3v22) SetGenre(genre string) error
- func (id3v2 *ID3v22) SetPicture(picture image.Image) error
- func (id3v2 *ID3v22) SetTitle(title string) error
- func (id3v2 *ID3v22) SetTrackNumber(number int, total int) error
- func (id3v2 *ID3v22) SetYear(year int) error
- type ID3v22Frame
- type ID3v23
- func (id3v2 *ID3v23) DeleteAlbum() error
- func (id3v2 *ID3v23) DeleteAlbumArtist() error
- func (id3v2 *ID3v23) DeleteAll() error
- func (id3v2 *ID3v23) DeleteArranger() error
- func (id3v2 *ID3v23) DeleteArtist() error
- func (id3v2 *ID3v23) DeleteAuthor() error
- func (id3v2 *ID3v23) DeleteBPM() error
- func (id3v2 *ID3v23) DeleteCatalogNumber() error
- func (id3v2 *ID3v23) DeleteComment() error
- func (id3v2 *ID3v23) DeleteCompilation() error
- func (id3v2 *ID3v23) DeleteComposer() error
- func (id3v2 *ID3v23) DeleteConductor() error
- func (id3v2 *ID3v23) DeleteCopyright() error
- func (id3v2 *ID3v23) DeleteDate() error
- func (id3v2 *ID3v23) DeleteDescription() error
- func (id3v2 *ID3v23) DeleteDiscNumber() error
- func (id3v2 *ID3v23) DeleteEncodedBy() error
- func (id3v2 *ID3v23) DeleteGenre() error
- func (id3v2 *ID3v23) DeletePicture() error
- func (id3v2 *ID3v23) DeleteTag(name string) error
- func (id3v2 *ID3v23) DeleteTagTXXX(name string) error
- func (id3v2 *ID3v23) DeleteTitle() error
- func (id3v2 *ID3v23) DeleteTrackNumber() error
- func (id3v2 *ID3v23) DeleteYear() error
- func (id3v2 *ID3v23) GetAlbum() (string, error)
- func (id3v2 *ID3v23) GetAlbumArtist() (string, error)
- func (id3v2 *ID3v23) GetAllTagNames() []string
- func (id3v2 *ID3v23) GetArranger() (string, error)
- func (id3v2 *ID3v23) GetArtist() (string, error)
- func (id3v2 *ID3v23) GetAttachedPicture() (*AttachedPicture, error)
- func (id3v2 *ID3v23) GetAuthor() (string, error)
- func (id3v2 *ID3v23) GetBPM() (int, error)
- func (id3v2 *ID3v23) GetCatalogNumber() (string, error)
- func (id3v2 *ID3v23) GetComment() (string, error)
- func (id3v2 *ID3v23) GetCompilation() (string, error)
- func (id3v2 *ID3v23) GetComposer() (string, error)
- func (id3v2 *ID3v23) GetConductor() (string, error)
- func (id3v2 *ID3v23) GetCopyright() (string, error)
- func (id3v2 *ID3v23) GetDate() (time.Time, error)
- func (id3v2 *ID3v23) GetDescription() (string, error)
- func (id3v2 *ID3v23) GetDiscNumber() (int, int, error)
- func (id3v2 *ID3v23) GetEncodedBy() (string, error)
- func (id3v2 *ID3v23) GetFileData() []byte
- func (id3v2 *ID3v23) GetGenre() (string, error)
- func (id3v2 *ID3v23) GetInt(name string) (int, error)
- func (id3v2 *ID3v23) GetIntTXXX(name string) (int, error)
- func (id3v2 *ID3v23) GetPicture() (image.Image, error)
- func (id3v2 *ID3v23) GetString(name string) (string, error)
- func (id3v2 *ID3v23) GetStringTXXX(name string) (string, error)
- func (id3v2 *ID3v23) GetTimestamp(name string) (time.Time, error)
- func (id3v2 *ID3v23) GetTitle() (string, error)
- func (id3v2 *ID3v23) GetTrackNumber() (int, int, error)
- func (id3v2 *ID3v23) GetVersion() Version
- func (id3v2 *ID3v23) GetYear() (int, error)
- func (id3v2 *ID3v23) Save(input io.WriteSeeker) error
- func (id3v2 *ID3v23) SaveFile(path string) error
- func (id3v2 *ID3v23) SetAlbum(album string) error
- func (id3v2 *ID3v23) SetAlbumArtist(albumArtist string) error
- func (id3v2 *ID3v23) SetArranger(arranger string) error
- func (id3v2 *ID3v23) SetArtist(artist string) error
- func (id3v2 *ID3v23) SetAttachedPicture(picture *AttachedPicture) error
- func (id3v2 *ID3v23) SetAuthor(author string) error
- func (id3v2 *ID3v23) SetBPM(bmp int) error
- func (id3v2 *ID3v23) SetCatalogNumber(catalogNumber string) error
- func (id3v2 *ID3v23) SetComment(comment string) error
- func (id3v2 *ID3v23) SetCompilation(compilation string) error
- func (id3v2 *ID3v23) SetComposer(composer string) error
- func (id3v2 *ID3v23) SetConductor(conductor string) error
- func (id3v2 *ID3v23) SetCopyright(copyright string) error
- func (id3v2 *ID3v23) SetDate(date time.Time) error
- func (id3v2 *ID3v23) SetDescription(description string) error
- func (id3v2 *ID3v23) SetDiscNumber(number int, total int) error
- func (id3v2 *ID3v23) SetEncodedBy(encodedBy string) error
- func (id3v2 *ID3v23) SetGenre(genre string) error
- func (id3v2 *ID3v23) SetInt(name string, value int) error
- func (id3v2 *ID3v23) SetPicture(picture image.Image) error
- func (id3v2 *ID3v23) SetString(name string, value string) error
- func (id3v2 *ID3v23) SetStringTXXX(name string, value string) error
- func (id3v2 *ID3v23) SetTimestamp(name string, value time.Time) error
- func (id3v2 *ID3v23) SetTitle(title string) error
- func (id3v2 *ID3v23) SetTrackNumber(number int, total int) error
- func (id3v2 *ID3v23) SetYear(year int) error
- func (id3v2 *ID3v23) String() string
- type ID3v23Frame
- type ID3v24
- func (id3v2 *ID3v24) DeleteAlbum() error
- func (id3v2 *ID3v24) DeleteAlbumArtist() error
- func (id3v2 *ID3v24) DeleteAll() error
- func (id3v2 *ID3v24) DeleteArranger() error
- func (id3v2 *ID3v24) DeleteArtist() error
- func (id3v2 *ID3v24) DeleteAuthor() error
- func (id3v2 *ID3v24) DeleteBPM() error
- func (id3v2 *ID3v24) DeleteCatalogNumber() error
- func (id3v2 *ID3v24) DeleteComment() error
- func (id3v2 *ID3v24) DeleteCompilation() error
- func (id3v2 *ID3v24) DeleteComposer() error
- func (id3v2 *ID3v24) DeleteConductor() error
- func (id3v2 *ID3v24) DeleteCopyright() error
- func (id3v2 *ID3v24) DeleteDate() error
- func (id3v2 *ID3v24) DeleteDescription() error
- func (id3v2 *ID3v24) DeleteDiscNumber() error
- func (id3v2 *ID3v24) DeleteEncodedBy() error
- func (id3v2 *ID3v24) DeleteGenre() error
- func (id3v2 *ID3v24) DeletePicture() error
- func (id3v2 *ID3v24) DeleteTag(name string) error
- func (id3v2 *ID3v24) DeleteTagTXXX(name string) error
- func (id3v2 *ID3v24) DeleteTitle() error
- func (id3v2 *ID3v24) DeleteTrackNumber() error
- func (id3v2 *ID3v24) DeleteYear() error
- func (id3v2 *ID3v24) GetAlbum() (string, error)
- func (id3v2 *ID3v24) GetAlbumArtist() (string, error)
- func (id3v2 *ID3v24) GetAllTagNames() []string
- func (id3v2 *ID3v24) GetArranger() (string, error)
- func (id3v2 *ID3v24) GetArtist() (string, error)
- func (id3v2 *ID3v24) GetAttachedPicture() (*AttachedPicture, error)
- func (id3v2 *ID3v24) GetAuthor() (string, error)
- func (id3v2 *ID3v24) GetBPM() (int, error)
- func (id3v2 *ID3v24) GetCatalogNumber() (string, error)
- func (id3v2 *ID3v24) GetComment() (string, error)
- func (id3v2 *ID3v24) GetCompilation() (string, error)
- func (id3v2 *ID3v24) GetComposer() (string, error)
- func (id3v2 *ID3v24) GetConductor() (string, error)
- func (id3v2 *ID3v24) GetCopyright() (string, error)
- func (id3v2 *ID3v24) GetDate() (time.Time, error)
- func (id3v2 *ID3v24) GetDescription() (string, error)
- func (id3v2 *ID3v24) GetDiscNumber() (int, int, error)
- func (id3v2 *ID3v24) GetEncodedBy() (string, error)
- func (id3v2 *ID3v24) GetFileData() []byte
- func (id3v2 *ID3v24) GetGenre() (string, error)
- func (id3v2 *ID3v24) GetInt(name string) (int, error)
- func (id3v2 *ID3v24) GetIntTXXX(name string) (int, error)
- func (id3v2 *ID3v24) GetPicture() (image.Image, error)
- func (id3v2 *ID3v24) GetString(name string) (string, error)
- func (id3v2 *ID3v24) GetStringTXXX(name string) (string, error)
- func (id3v2 *ID3v24) GetTimestamp(name string) (time.Time, error)
- func (id3v2 *ID3v24) GetTitle() (string, error)
- func (id3v2 *ID3v24) GetTrackNumber() (int, int, error)
- func (id3v2 *ID3v24) GetVersion() Version
- func (id3v2 *ID3v24) GetYear() (int, error)
- func (id3v2 *ID3v24) Save(input io.WriteSeeker) error
- func (id3v2 *ID3v24) SaveFile(path string) error
- func (id3v2 *ID3v24) SetAlbum(album string) error
- func (id3v2 *ID3v24) SetAlbumArtist(albumArtist string) error
- func (id3v2 *ID3v24) SetArranger(arranger string) error
- func (id3v2 *ID3v24) SetArtist(artist string) error
- func (id3v2 *ID3v24) SetAttachedPicture(picture *AttachedPicture) error
- func (id3v2 *ID3v24) SetAuthor(author string) error
- func (id3v2 *ID3v24) SetBPM(bmp int) error
- func (id3v2 *ID3v24) SetCatalogNumber(catalogNumber string) error
- func (id3v2 *ID3v24) SetComment(comment string) error
- func (id3v2 *ID3v24) SetCompilation(compilation string) error
- func (id3v2 *ID3v24) SetComposer(composer string) error
- func (id3v2 *ID3v24) SetConductor(conductor string) error
- func (id3v2 *ID3v24) SetCopyright(copyright string) error
- func (id3v2 *ID3v24) SetDate(date time.Time) error
- func (id3v2 *ID3v24) SetDescription(description string) error
- func (id3v2 *ID3v24) SetDiscNumber(number int, total int) error
- func (id3v2 *ID3v24) SetEncodedBy(encodedBy string) error
- func (id3v2 *ID3v24) SetGenre(genre string) error
- func (id3v2 *ID3v24) SetInt(name string, value int) error
- func (id3v2 *ID3v24) SetPicture(picture image.Image) error
- func (id3v2 *ID3v24) SetString(name string, value string) error
- func (id3v2 *ID3v24) SetStringTXXX(name string, value string) error
- func (id3v2 *ID3v24) SetTimestamp(name string, value time.Time) error
- func (id3v2 *ID3v24) SetTitle(title string) error
- func (id3v2 *ID3v24) SetTrackNumber(number int, total int) error
- func (id3v2 *ID3v24) SetYear(year int) error
- func (id3v2 *ID3v24) String() string
- type ID3v24Frame
- type MP4
- func (MP4) DeleteAlbum() error
- func (MP4) DeleteAlbumArtist() error
- func (MP4) DeleteAll() error
- func (MP4) DeleteArranger() error
- func (MP4) DeleteArtist() error
- func (MP4) DeleteAuthor() error
- func (MP4) DeleteBPM() error
- func (MP4) DeleteCatalogNumber() error
- func (MP4) DeleteComment() error
- func (MP4) DeleteCompilation() error
- func (MP4) DeleteComposer() error
- func (MP4) DeleteConductor() error
- func (MP4) DeleteCopyright() error
- func (MP4) DeleteDate() error
- func (MP4) DeleteDescription() error
- func (MP4) DeleteDiscNumber() error
- func (MP4) DeleteEncodedBy() error
- func (MP4) DeleteGenre() error
- func (MP4) DeletePicture() error
- func (MP4) DeleteTitle() error
- func (MP4) DeleteTrackNumber() error
- func (MP4) DeleteYear() error
- func (mp4 *MP4) GetAlbum() (string, error)
- func (mp4 *MP4) GetAlbumArtist() (string, error)
- func (MP4) GetAllTagNames() []string
- func (MP4) GetArranger() (string, error)
- func (mp4 *MP4) GetArtist() (string, error)
- func (MP4) GetAuthor() (string, error)
- func (MP4) GetBPM() (int, error)
- func (MP4) GetCatalogNumber() (string, error)
- func (MP4) GetComment() (string, error)
- func (MP4) GetCompilation() (string, error)
- func (mp4 *MP4) GetComposer() (string, error)
- func (MP4) GetConductor() (string, error)
- func (mp4 *MP4) GetCopyright() (string, error)
- func (MP4) GetDate() (time.Time, error)
- func (MP4) GetDescription() (string, error)
- func (MP4) GetDiscNumber() (int, int, error)
- func (mp4 *MP4) GetEncodedBy() (string, error)
- func (MP4) GetFileData() []byte
- func (mp4 *MP4) GetGenre() (string, error)
- func (mp4 *MP4) GetPicture() (image.Image, error)
- func (mp4 *MP4) GetTitle() (string, error)
- func (mp4 *MP4) GetTrackNumber() (int, int, error)
- func (mp4 *MP4) GetVersion() Version
- func (mp4 *MP4) GetYear() (int, error)
- func (MP4) Save(input io.WriteSeeker) error
- func (MP4) SaveFile(path string) error
- func (MP4) SetAlbum(album string) error
- func (MP4) SetAlbumArtist(albumArtist string) error
- func (MP4) SetArranger(arranger string) error
- func (MP4) SetArtist(artist string) error
- func (MP4) SetAuthor(author string) error
- func (MP4) SetBPM(bmp int) error
- func (MP4) SetCatalogNumber(catalogNumber string) error
- func (MP4) SetComment(comment string) error
- func (MP4) SetCompilation(compilation string) error
- func (MP4) SetComposer(composer string) error
- func (MP4) SetConductor(conductor string) error
- func (MP4) SetCopyright(copyright string) error
- func (MP4) SetDate(date time.Time) error
- func (MP4) SetDescription(description string) error
- func (MP4) SetDiscNumber(number int, total int) error
- func (MP4) SetEncodedBy(encodedBy string) error
- func (MP4) SetGenre(genre string) error
- func (MP4) SetPicture(picture image.Image) error
- func (MP4) SetTitle(title string) error
- func (MP4) SetTrackNumber(number int, total int) error
- func (MP4) SetYear(year int) error
- type Metadata
- type SaveMetadata
- type SetMetadata
- type Version
- type VorbisComment
Constants ¶
const Mp4Marker = "ftyp"
const Mp4MetaAtom = "meta"
const Mp4MetaIlst = "ilst"
const Mp4MetaUpta = "udta"
const Mp4MoovAtom = "moov"
const Mp4TagAlbum = "album"
const Mp4TagAlbumArtist = "album_artist"
const Mp4TagArtist = "artist"
const Mp4TagComment = "comment"
const Mp4TagCompilation = "compilation"
const Mp4TagComposer = "composer"
const Mp4TagCopyright = "copyright"
const Mp4TagDisc = "disk"
const Mp4TagEncoder = "encoder"
const Mp4TagGenre = "genre"
const Mp4TagGrouping = "grouping"
const Mp4TagKeyword = "keyword"
const Mp4TagLyrics = "lyrics"
const Mp4TagPicture = "picture"
const Mp4TagTempo = "tempo"
const Mp4TagTitle = "title"
const Mp4TagTrack = "track"
const Mp4TagYear = "year"
Variables ¶
var ( ErrUnsupportedFormat = errors.New("unsupported format") ErrIncorrectLength = errors.New("tag incorrect length") ErrUnsupportedTag = errors.New("unsupported tag") ErrTagNotFound = errors.New("tag not found") ErrEmptyFile = errors.New("empty file") ErrFileMarker = errors.New("error file marker") ErrReadFile = errors.New("error read file") ErrSeekFile = errors.New("error seek file") ErrWriteFile = errors.New("error write file") ErrIncorrectTag = errors.New("incorrect tag") ErrNotFoundGenre = errors.New("not found genre") ErrNotPictureBlock = errors.New("not a picture block") ErrWriting = errors.New("writing error") ErrDecodeEvenLength = errors.New("must have even length byte slice") ErrEncodingFormat = errors.New("unknown encoding format") )
var Mp4Types = [...]string{
"mp41",
"mp42",
"isom",
"iso2",
"M4A ",
"M4B ",
}
Functions ¶
func ByteToIntSynchsafe ¶
ByteToIntSynchsafe - Convert byte to int In some parts of the tag it is inconvenient to use the unsychronisation scheme because the size of unsynchronised data is not known in advance, which is particularly problematic with size descriptors. The solution in ID3v2 is to use synchsafe integers, in which there can never be any false synchs. Synchsafe integers are integers that keep its highest bit (bit 7) zeroed, making seven bits out of eight available. Thus a 32 bit synchsafe integer can store 28 bits of information.
func DecodeUTF16BE ¶
Decode UTF-16 Big Endian To UTF-8.
func GetEncoding ¶
func IntToByteSynchsafe ¶
func TextEncoding ¶
TextEncoding - Text Encoding for text frame header First byte determinate text encoding. If ISO-8859-1 is used this byte should be $00, if Unicode is used it should be $01 Return text encoding. E.g. "utf8", "utf16", etc.
Types ¶
type AttachedPicture ¶
type DeleteMetadata ¶
type DeleteMetadata interface { DeleteAll() error DeleteTitle() error DeleteArtist() error DeleteAlbum() error DeleteYear() error DeleteComment() error DeleteGenre() error DeleteAlbumArtist() error DeleteDate() error DeleteArranger() error DeleteAuthor() error DeleteBPM() error DeleteCatalogNumber() error DeleteCompilation() error DeleteComposer() error DeleteConductor() error DeleteCopyright() error DeleteDescription() error DeleteDiscNumber() error DeleteEncodedBy() error DeleteTrackNumber() error DeletePicture() error }
type FLAC ¶
type FLAC struct { Blocks []*FlacMetadataBlock // Vorbis Comment Vendor string Tags map[string]string Data []byte }
func (*FLAC) DeleteAlbum ¶
func (*FLAC) DeleteAlbumArtist ¶
func (*FLAC) DeleteArranger ¶
func (*FLAC) DeleteArtist ¶
func (*FLAC) DeleteAuthor ¶
func (*FLAC) DeleteCatalogNumber ¶
func (*FLAC) DeleteComment ¶
func (*FLAC) DeleteCompilation ¶
func (*FLAC) DeleteComposer ¶
func (*FLAC) DeleteConductor ¶
func (*FLAC) DeleteCopyright ¶
func (*FLAC) DeleteDate ¶
func (*FLAC) DeleteDescription ¶
func (*FLAC) DeleteDiscNumber ¶
func (*FLAC) DeleteEncodedBy ¶
func (*FLAC) DeleteGenre ¶
func (*FLAC) DeletePicture ¶
func (*FLAC) DeleteTitle ¶
func (*FLAC) DeleteTrackNumber ¶
func (*FLAC) DeleteYear ¶
func (*FLAC) GetAlbumArtist ¶
func (*FLAC) GetAllTagNames ¶
func (*FLAC) GetArranger ¶
func (*FLAC) GetCatalogNumber ¶
func (*FLAC) GetComment ¶
func (*FLAC) GetCompilation ¶
func (*FLAC) GetComposer ¶
func (*FLAC) GetConductor ¶
func (*FLAC) GetCopyright ¶
func (*FLAC) GetDescription ¶
func (*FLAC) GetEncodedBy ¶
func (*FLAC) GetFileData ¶
func (*FLAC) GetMetadataBlockPicture ¶
func (flac *FLAC) GetMetadataBlockPicture() (*FlacMetadataBlockPicture, error)
func (*FLAC) GetVersion ¶
func (*FLAC) GetVorbisCommentTime ¶
func (*FLAC) SetAlbumArtist ¶
func (*FLAC) SetArranger ¶
func (*FLAC) SetCatalogNumber ¶
func (*FLAC) SetComment ¶
func (*FLAC) SetCompilation ¶
func (*FLAC) SetComposer ¶
func (*FLAC) SetConductor ¶
func (*FLAC) SetCopyright ¶
func (*FLAC) SetDescription ¶
func (*FLAC) SetEncodedBy ¶
type FlacMetadataBlock ¶
type FlacMetadataBlock struct { // IsLast - Last-metadata-block flag: // '1' if this block is the last metadata block before the audio blocks, // '0' otherwise. IsLast bool Type FlacMetadataBlockType Size int Data []byte }
type FlacMetadataBlockType ¶
type FlacMetadataBlockType byte
const ( FlacStreamInfo FlacMetadataBlockType = 0 FlacPadding FlacMetadataBlockType = 1 FlacApplication FlacMetadataBlockType = 2 FlacSeekTable FlacMetadataBlockType = 3 FlacVorbisComment FlacMetadataBlockType = 4 FlacCueSheet FlacMetadataBlockType = 5 FlacPicture FlacMetadataBlockType = 6 )
BLOCK_TYPE:
0 : STREAMINFO 1 : PADDING 2 : APPLICATION 3 : SEEKTABLE 4 : VORBIS_COMMENT 5 : CUESHEET 6 : PICTURE 7-126 : reserved 127 : invalid, to avoid confusion with a frame sync code
type GetMetadata ¶
type GetMetadata interface { GetAllTagNames() []string GetVersion() Version GetFileData() []byte // all another file data GetTitle() (string, error) GetArtist() (string, error) GetAlbum() (string, error) GetYear() (int, error) GetComment() (string, error) GetGenre() (string, error) GetAlbumArtist() (string, error) GetDate() (time.Time, error) GetArranger() (string, error) GetAuthor() (string, error) GetBPM() (int, error) GetCatalogNumber() (string, error) GetCompilation() (string, error) GetComposer() (string, error) GetConductor() (string, error) GetCopyright() (string, error) GetDescription() (string, error) GetDiscNumber() (int, int, error) // number, total GetEncodedBy() (string, error) GetTrackNumber() (int, int, error) // number, total GetPicture() (image.Image, error) }
type ID3v1 ¶
type ID3v1 struct { Type string // Always 'TAG' Title string // length 30. 30 characters of the title Artist string // length 30. 30 characters of the artist name Album string // length 30. 30 characters of the album name Year int // length 4. A four-digit year. Comment string // length 28 or 30. The comment. ZeroByte byte // length 1. If a track number is stored, this byte contains a binary 0. Track byte // length 1. The number of the track on the album, or 0. Invalid, if previous byte is not a binary 0. Genre Genre // length 1. Index in a list of genres, or 255 // another file data Data []byte }
ID3v1 - struct for store id3v1 data format with fix size - 128 bytes.
func (*ID3v1) DeleteAlbum ¶
func (*ID3v1) DeleteAlbumArtist ¶
func (*ID3v1) DeleteArranger ¶
func (*ID3v1) DeleteArtist ¶
func (*ID3v1) DeleteAuthor ¶
func (*ID3v1) DeleteCatalogNumber ¶
func (*ID3v1) DeleteComment ¶
func (*ID3v1) DeleteCompilation ¶
func (*ID3v1) DeleteComposer ¶
func (*ID3v1) DeleteConductor ¶
func (*ID3v1) DeleteCopyright ¶
func (*ID3v1) DeleteDate ¶
func (*ID3v1) DeleteDescription ¶
func (*ID3v1) DeleteDiscNumber ¶
func (*ID3v1) DeleteEncodedBy ¶
func (*ID3v1) DeleteGenre ¶
func (*ID3v1) DeletePicture ¶
func (*ID3v1) DeleteTitle ¶
func (*ID3v1) DeleteTrackNumber ¶
func (*ID3v1) DeleteYear ¶
func (*ID3v1) GetAlbumArtist ¶
func (*ID3v1) GetAllTagNames ¶
func (*ID3v1) GetArranger ¶
func (*ID3v1) GetCatalogNumber ¶
func (*ID3v1) GetComment ¶
func (*ID3v1) GetCompilation ¶
func (*ID3v1) GetComposer ¶
func (*ID3v1) GetConductor ¶
func (*ID3v1) GetCopyright ¶
func (*ID3v1) GetDescription ¶
func (*ID3v1) GetEncodedBy ¶
func (*ID3v1) GetFileData ¶
func (*ID3v1) GetVersion ¶
func (*ID3v1) SetAlbumArtist ¶
func (*ID3v1) SetArranger ¶
func (*ID3v1) SetCatalogNumber ¶
func (*ID3v1) SetComment ¶
func (*ID3v1) SetCompilation ¶
func (*ID3v1) SetComposer ¶
func (*ID3v1) SetConductor ¶
func (*ID3v1) SetCopyright ¶
func (*ID3v1) SetDescription ¶
func (*ID3v1) SetEncodedBy ¶
type ID3v22 ¶
type ID3v22 struct { Marker string // Always Length int Frames []ID3v22Frame }
func (*ID3v22) DeleteAlbum ¶
func (*ID3v22) DeleteAlbumArtist ¶
func (*ID3v22) DeleteArranger ¶
func (*ID3v22) DeleteArtist ¶
func (*ID3v22) DeleteAuthor ¶
func (*ID3v22) DeleteCatalogNumber ¶
func (*ID3v22) DeleteComment ¶
func (*ID3v22) DeleteCompilation ¶
func (*ID3v22) DeleteComposer ¶
func (*ID3v22) DeleteConductor ¶
func (*ID3v22) DeleteCopyright ¶
func (*ID3v22) DeleteDate ¶
func (*ID3v22) DeleteDescription ¶
func (*ID3v22) DeleteDiscNumber ¶
func (*ID3v22) DeleteEncodedBy ¶
func (*ID3v22) DeleteGenre ¶
func (*ID3v22) DeletePicture ¶
func (*ID3v22) DeleteTitle ¶
func (*ID3v22) DeleteTrackNumber ¶
func (*ID3v22) DeleteYear ¶
func (*ID3v22) GetAlbumArtist ¶
func (*ID3v22) GetAllTagNames ¶
func (*ID3v22) GetArranger ¶
func (*ID3v22) GetAttachedPicture ¶
func (id3v2 *ID3v22) GetAttachedPicture() (*AttachedPicture, error)
func (*ID3v22) GetCatalogNumber ¶
func (*ID3v22) GetComment ¶
func (*ID3v22) GetCompilation ¶
func (*ID3v22) GetComposer ¶
func (*ID3v22) GetConductor ¶
func (*ID3v22) GetCopyright ¶
func (*ID3v22) GetDescription ¶
func (*ID3v22) GetEncodedBy ¶
func (*ID3v22) GetFileData ¶
func (*ID3v22) GetVersion ¶
func (*ID3v22) SetAlbumArtist ¶
func (*ID3v22) SetArranger ¶
func (*ID3v22) SetCatalogNumber ¶
func (*ID3v22) SetComment ¶
func (*ID3v22) SetCompilation ¶
func (*ID3v22) SetComposer ¶
func (*ID3v22) SetConductor ¶
func (*ID3v22) SetCopyright ¶
func (*ID3v22) SetDescription ¶
func (*ID3v22) SetEncodedBy ¶
type ID3v22Frame ¶
type ID3v23 ¶
type ID3v23 struct { Marker string // Always 'ID3' Version Version SubVersion int Flags id3v23Flags Length int Frames []ID3v23Frame Data []byte }
func (*ID3v23) DeleteAlbum ¶
func (*ID3v23) DeleteAlbumArtist ¶
func (*ID3v23) DeleteArranger ¶
func (*ID3v23) DeleteArtist ¶
func (*ID3v23) DeleteAuthor ¶
func (*ID3v23) DeleteCatalogNumber ¶
func (*ID3v23) DeleteComment ¶
func (*ID3v23) DeleteCompilation ¶
func (*ID3v23) DeleteComposer ¶
func (*ID3v23) DeleteConductor ¶
func (*ID3v23) DeleteCopyright ¶
func (*ID3v23) DeleteDate ¶
func (*ID3v23) DeleteDescription ¶
func (*ID3v23) DeleteDiscNumber ¶
func (*ID3v23) DeleteEncodedBy ¶
func (*ID3v23) DeleteGenre ¶
func (*ID3v23) DeletePicture ¶
func (*ID3v23) DeleteTagTXXX ¶
func (*ID3v23) DeleteTitle ¶
func (*ID3v23) DeleteTrackNumber ¶
func (*ID3v23) DeleteYear ¶
func (*ID3v23) GetAlbumArtist ¶
func (*ID3v23) GetAllTagNames ¶
func (*ID3v23) GetArranger ¶
func (*ID3v23) GetAttachedPicture ¶
func (id3v2 *ID3v23) GetAttachedPicture() (*AttachedPicture, error)
func (*ID3v23) GetCatalogNumber ¶
func (*ID3v23) GetComment ¶
func (*ID3v23) GetCompilation ¶
func (*ID3v23) GetComposer ¶
func (*ID3v23) GetConductor ¶
func (*ID3v23) GetCopyright ¶
func (*ID3v23) GetDescription ¶
func (*ID3v23) GetEncodedBy ¶
func (*ID3v23) GetFileData ¶
func (*ID3v23) GetStringTXXX ¶
GetStringTXXX - read TXXX frame Header for 'User defined text information frame' Text encoding $xx Description <text string according to encoding> $00 (00) Value <text string according to encoding>.
func (*ID3v23) GetVersion ¶
func (*ID3v23) SetAlbumArtist ¶
func (*ID3v23) SetArranger ¶
func (*ID3v23) SetAttachedPicture ¶
func (id3v2 *ID3v23) SetAttachedPicture(picture *AttachedPicture) error
nolint:gocritic
func (*ID3v23) SetCatalogNumber ¶
func (*ID3v23) SetComment ¶
func (*ID3v23) SetCompilation ¶
func (*ID3v23) SetComposer ¶
func (*ID3v23) SetConductor ¶
func (*ID3v23) SetCopyright ¶
func (*ID3v23) SetDescription ¶
func (*ID3v23) SetEncodedBy ¶
type ID3v23Frame ¶
type ID3v24 ¶
type ID3v24 struct { Marker string // Always 'ID3' Version Version SubVersion int Flags id3v24Flags Length int Frames []ID3v24Frame Data []byte }
func ReadID3v24 ¶
func ReadID3v24(input io.ReadSeeker) (*ID3v24, error)
func (*ID3v24) DeleteAlbum ¶
func (*ID3v24) DeleteAlbumArtist ¶
func (*ID3v24) DeleteArranger ¶
func (*ID3v24) DeleteArtist ¶
func (*ID3v24) DeleteAuthor ¶
func (*ID3v24) DeleteCatalogNumber ¶
func (*ID3v24) DeleteComment ¶
func (*ID3v24) DeleteCompilation ¶
func (*ID3v24) DeleteComposer ¶
func (*ID3v24) DeleteConductor ¶
func (*ID3v24) DeleteCopyright ¶
func (*ID3v24) DeleteDate ¶
func (*ID3v24) DeleteDescription ¶
func (*ID3v24) DeleteDiscNumber ¶
func (*ID3v24) DeleteEncodedBy ¶
func (*ID3v24) DeleteGenre ¶
func (*ID3v24) DeletePicture ¶
func (*ID3v24) DeleteTagTXXX ¶
func (*ID3v24) DeleteTitle ¶
func (*ID3v24) DeleteTrackNumber ¶
func (*ID3v24) DeleteYear ¶
func (*ID3v24) GetAlbumArtist ¶
func (*ID3v24) GetAllTagNames ¶
func (*ID3v24) GetArranger ¶
func (*ID3v24) GetAttachedPicture ¶
func (id3v2 *ID3v24) GetAttachedPicture() (*AttachedPicture, error)
func (*ID3v24) GetCatalogNumber ¶
func (*ID3v24) GetComment ¶
func (*ID3v24) GetCompilation ¶
func (*ID3v24) GetComposer ¶
func (*ID3v24) GetConductor ¶
func (*ID3v24) GetCopyright ¶
func (*ID3v24) GetDescription ¶
func (*ID3v24) GetEncodedBy ¶
func (*ID3v24) GetFileData ¶
func (*ID3v24) GetStringTXXX ¶
GetStringTXXX - get user frame Header for 'User defined text information frame' Text encoding $xx Description <text string according to encoding> $00 (00) Value <text string according to encoding>.
func (*ID3v24) GetVersion ¶
func (*ID3v24) SetAlbumArtist ¶
func (*ID3v24) SetArranger ¶
func (*ID3v24) SetAttachedPicture ¶
func (id3v2 *ID3v24) SetAttachedPicture(picture *AttachedPicture) error
nolint:gocritic
func (*ID3v24) SetCatalogNumber ¶
func (*ID3v24) SetComment ¶
func (*ID3v24) SetCompilation ¶
func (*ID3v24) SetComposer ¶
func (*ID3v24) SetConductor ¶
func (*ID3v24) SetCopyright ¶
func (*ID3v24) SetDescription ¶
func (*ID3v24) SetEncodedBy ¶
type ID3v24Frame ¶
type MP4 ¶
type MP4 struct {
// contains filtered or unexported fields
}
func (MP4) DeleteAlbum ¶
func (MP4) DeleteAlbumArtist ¶
func (MP4) DeleteArranger ¶
func (MP4) DeleteArtist ¶
func (MP4) DeleteAuthor ¶
func (MP4) DeleteCatalogNumber ¶
func (MP4) DeleteComment ¶
func (MP4) DeleteCompilation ¶
func (MP4) DeleteComposer ¶
func (MP4) DeleteConductor ¶
func (MP4) DeleteCopyright ¶
func (MP4) DeleteDate ¶
func (MP4) DeleteDescription ¶
func (MP4) DeleteDiscNumber ¶
func (MP4) DeleteEncodedBy ¶
func (MP4) DeleteGenre ¶
func (MP4) DeletePicture ¶
func (MP4) DeleteTitle ¶
func (MP4) DeleteTrackNumber ¶
func (MP4) DeleteYear ¶
func (*MP4) GetAlbumArtist ¶
func (MP4) GetAllTagNames ¶
func (MP4) GetArranger ¶
func (MP4) GetCatalogNumber ¶
func (MP4) GetComment ¶
func (MP4) GetCompilation ¶
func (*MP4) GetComposer ¶
func (MP4) GetConductor ¶
func (*MP4) GetCopyright ¶
func (MP4) GetDescription ¶
func (*MP4) GetEncodedBy ¶
func (MP4) GetFileData ¶
func (*MP4) GetVersion ¶
func (MP4) SetAlbumArtist ¶
func (MP4) SetArranger ¶
func (MP4) SetCatalogNumber ¶
func (MP4) SetComment ¶
func (MP4) SetCompilation ¶
func (MP4) SetComposer ¶
func (MP4) SetConductor ¶
func (MP4) SetCopyright ¶
func (MP4) SetDescription ¶
func (MP4) SetEncodedBy ¶
type Metadata ¶
type Metadata interface { GetMetadata SetMetadata DeleteMetadata SaveMetadata }
type SaveMetadata ¶
type SaveMetadata interface { SaveFile(path string) error Save(input io.WriteSeeker) error }
type SetMetadata ¶
type SetMetadata interface { SetTitle(title string) error SetArtist(artist string) error SetAlbum(album string) error SetYear(year int) error SetComment(comment string) error SetGenre(genre string) error SetAlbumArtist(albumArtist string) error SetDate(date time.Time) error SetArranger(arranger string) error SetAuthor(author string) error SetBPM(bmp int) error SetCatalogNumber(catalogNumber string) error SetCompilation(compilation string) error SetComposer(composer string) error SetConductor(conductor string) error SetCopyright(copyright string) error SetDescription(description string) error SetDiscNumber(number int, total int) error SetEncodedBy(encodedBy string) error SetTrackNumber(number int, total int) error SetPicture(picture image.Image) error }
type Version ¶ added in v0.0.2
type Version int
func CheckVersion ¶
func CheckVersion(input io.ReadSeeker) Version