Versions in this module Expand all Collapse all v0 v0.0.2 May 28, 2022 Changes in this version + const Mp4Marker + const Mp4MetaAtom + const Mp4MetaIlst + const Mp4MetaUpta + const Mp4MoovAtom + const Mp4TagAlbum + const Mp4TagAlbumArtist + const Mp4TagArtist + const Mp4TagComment + const Mp4TagCompilation + const Mp4TagComposer + const Mp4TagCopyright + const Mp4TagDisc + const Mp4TagEncoder + const Mp4TagGenre + const Mp4TagGrouping + const Mp4TagKeyword + const Mp4TagLyrics + const Mp4TagPicture + const Mp4TagTempo + const Mp4TagTitle + const Mp4TagTrack + const Mp4TagYear + var ErrDecodeEvenLength = errors.New("must have even length byte slice") + var ErrEncodingFormat = errors.New("unknown encoding format") + var ErrNotPictureBlock = errors.New("not a picture block") + var ErrWriting = errors.New("writing error") + var Mp4Types = [...]string + type Version int + const FLACIdentifier + const VersionFLAC + const VersionID3v1 + const VersionID3v22 + const VersionID3v23 + const VersionID3v24 + const VersionMP4 + const VersionUndefined + func (v Version) String() string v0.0.1 May 28, 2022 Changes in this version + const FRAME_HEADER_SIZE + const MP4_MARKER + const MP4_META_ATOM + const MP4_META_ILST + const MP4_META_UPTA + const MP4_MOOV_ATOM + const MP4_TAG_ALBUM + const MP4_TAG_ALBUM_ARTIST + const MP4_TAG_ARTIST + const MP4_TAG_COMMENT + const MP4_TAG_COMPILATION + const MP4_TAG_COMPOSER + const MP4_TAG_COPYRIGHT + const MP4_TAG_DISC + const MP4_TAG_ENCODER + const MP4_TAG_GENRE + const MP4_TAG_GROUPING + const MP4_TAG_KEYWORD + const MP4_TAG_LYRICS + const MP4_TAG_PICTURE + const MP4_TAG_TEMPO + const MP4_TAG_TITLE + const MP4_TAG_TRACK + const MP4_TAG_YEAR + var ErrEmptyFile = errors.New("empty file") + var ErrFileMarker = errors.New("error file marker") + var ErrIncorrectLength = errors.New("tag incorrect length") + var ErrIncorrectTag = errors.New("incorrect tag") + var ErrNotFoundGenre = errors.New("not found genre") + var ErrReadFile = errors.New("error read file") + var ErrSeekFile = errors.New("error seek file") + var ErrTagNotFound = errors.New("tag not found") + var ErrUnsupportedFormat = errors.New("unsupported format") + var ErrUnsupportedTag = errors.New("unsupported tag") + var ErrWriteFile = errors.New("error write file") + var MP4_TYPES = [...]string + 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 struct + Data []byte + Description string + MIME string + PictureType byte + type DeleteMetadata interface + DeleteAlbum func() error + DeleteAlbumArtist func() error + DeleteAll func() error + DeleteArranger func() error + DeleteArtist func() error + DeleteAuthor func() error + DeleteBPM func() error + DeleteCatalogNumber func() error + DeleteComment func() error + DeleteCompilation func() error + DeleteComposer func() error + DeleteConductor func() error + DeleteCopyright func() error + DeleteDate func() error + DeleteDescription func() error + DeleteDiscNumber func() error + DeleteEncodedBy func() error + DeleteGenre func() error + DeletePicture func() error + DeleteTitle func() error + DeleteTrackNumber func() error + DeleteYear func() error + type FLAC struct + Blocks []*FlacMetadataBlock + Data []byte + Tags map[string]string + Vendor string + func ReadFLAC(input io.ReadSeeker) (*FLAC, error) + 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() TagVersion + 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 struct + Data []byte + IsLast bool + Size int + Type FlacMetadataBlockType + func (block *FlacMetadataBlock) Write(w io.Writer, isLast bool) error + type FlacMetadataBlockPicture struct + BitsPerPixel int32 + Description string + Height int32 + MIME string + NumberOfColors int32 + PictureData []byte + Type int32 + Width int32 + type FlacMetadataBlockType byte + const FlacApplication + const FlacCueSheet + const FlacPadding + const FlacPicture + const FlacSeekTable + const FlacStreamInfo + const FlacVorbisComment + type Genre byte + func GetGenreByName(name string) (Genre, error) + func (g Genre) String() string + type GetMetadata interface + GetAlbum func() (string, error) + GetAlbumArtist func() (string, error) + GetAllTagNames func() []string + GetArranger func() (string, error) + GetArtist func() (string, error) + GetAuthor func() (string, error) + GetBPM func() (int, error) + GetCatalogNumber func() (string, error) + GetComment func() (string, error) + GetCompilation func() (string, error) + GetComposer func() (string, error) + GetConductor func() (string, error) + GetCopyright func() (string, error) + GetDate func() (time.Time, error) + GetDescription func() (string, error) + GetDiscNumber func() (int, int, error) + GetEncodedBy func() (string, error) + GetFileData func() []byte + GetGenre func() (string, error) + GetPicture func() (image.Image, error) + GetTitle func() (string, error) + GetTrackNumber func() (int, int, error) + GetVersion func() TagVersion + GetYear func() (int, error) + type ID3v1 struct + Album string + Artist string + Comment string + Data []byte + Genre Genre + Title string + Track byte + Type string + Year int + ZeroByte byte + func ReadID3v1(input io.ReadSeeker) (*ID3v1, error) + 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() TagVersion + 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 struct + Frames []ID3v22Frame + Length int + Marker string + func ReadID3v22(input io.ReadSeeker) (*ID3v22, error) + 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() TagVersion + 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 struct + Key string + Value []byte + type ID3v23 struct + Data []byte + Flags Id3v23Flags + Frames []ID3v23Frame + Length int + Marker string + SubVersion int + Version TagVersion + func ReadID3v23(input io.ReadSeeker) (*ID3v23, error) + 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() TagVersion + 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 struct + Key string + Value []byte + type ID3v24 struct + Data []byte + Flags Id3v24Flags + Frames []ID3v24Frame + Length int + Marker string + SubVersion int + Version TagVersion + func ReadID3v24(input io.ReadSeeker) (*ID3v24, error) + 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() TagVersion + 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 struct + Key string + Value []byte + type Id3v23Flags byte + func (flags Id3v23Flags) HasExtendedHeader() bool + func (flags Id3v23Flags) IsExperimentalIndicator() bool + func (flags Id3v23Flags) IsUnsynchronisation() bool + func (flags Id3v23Flags) SetExperimentalIndicator(data bool) + func (flags Id3v23Flags) SetExtendedHeader(data bool) + func (flags Id3v23Flags) SetUnsynchronisation(data bool) + func (flags Id3v23Flags) String() string + type Id3v24Flags byte + func (flags Id3v24Flags) HasExtendedHeader() bool + func (flags Id3v24Flags) IsExperimentalIndicator() bool + func (flags Id3v24Flags) IsUnsynchronisation() bool + func (flags Id3v24Flags) SetExperimentalIndicator(data bool) + func (flags Id3v24Flags) SetExtendedHeader(data bool) + func (flags Id3v24Flags) SetUnsynchronisation(data bool) + func (flags Id3v24Flags) String() string + type MP4 struct + func ReadMp4(input io.ReadSeeker) (*MP4, error) + 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) GetAllTagNames() []string + func (MP4) GetArranger() (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) GetConductor() (string, error) + func (MP4) GetDate() (time.Time, error) + func (MP4) GetDescription() (string, error) + func (MP4) GetDiscNumber() (int, int, error) + func (MP4) GetFileData() []byte + 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 + func (mp4 *MP4) GetAlbum() (string, error) + func (mp4 *MP4) GetAlbumArtist() (string, error) + func (mp4 *MP4) GetArtist() (string, error) + func (mp4 *MP4) GetComposer() (string, error) + func (mp4 *MP4) GetCopyright() (string, error) + func (mp4 *MP4) GetEncodedBy() (string, error) + 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() TagVersion + func (mp4 *MP4) GetYear() (int, error) + type Metadata interface + func Read(input io.ReadSeeker) (Metadata, error) + func ReadFile(path string) (Metadata, error) + type SaveMetadata interface + Save func(input io.WriteSeeker) error + SaveFile func(path string) error + type SetMetadata interface + SetAlbum func(album string) error + SetAlbumArtist func(albumArtist string) error + SetArranger func(arranger string) error + SetArtist func(artist string) error + SetAuthor func(author string) error + SetBPM func(bmp int) error + SetCatalogNumber func(catalogNumber string) error + SetComment func(comment string) error + SetCompilation func(compilation string) error + SetComposer func(composer string) error + SetConductor func(conductor string) error + SetCopyright func(copyright string) error + SetDate func(date time.Time) error + SetDescription func(description string) error + SetDiscNumber func(number int, total int) error + SetEncodedBy func(encodedBy string) error + SetGenre func(genre string) error + SetPicture func(picture image.Image) error + SetTitle func(title string) error + SetTrackNumber func(number int, total int) error + SetYear func(year int) error + type TagVersion int + const TagVersionFLAC + const TagVersionID3v1 + const TagVersionID3v22 + const TagVersionID3v23 + const TagVersionID3v24 + const TagVersionMP4 + const TagVersionUndefined + func CheckVersion(input io.ReadSeeker) TagVersion + func (v TagVersion) String() string + type VorbisComment struct + Name string + Value string