Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dhowden/tag
/ functions
Functions
218 in github.com/dhowden/tag
⨍
Functions
218
◇
Types & classes
28
↓ 24 callers
Function
readBytes
10MB
util.go:47
↓ 20 callers
Function
getBit
(b byte, n uint)
util.go:13
↓ 18 callers
Function
readString
(r io.Reader, n uint)
util.go:64
↓ 13 callers
Function
testValue
(t *testing.T, expected interface{}, found interface{})
tag_test.go:122
↓ 12 callers
Method
Format
()
id3v2metadata.go:64
↓ 12 callers
Method
Name
(s string, fm Format)
id3v2metadata.go:15
↓ 9 callers
Method
getString
(k string)
id3v2metadata.go:56
↓ 9 callers
Function
readInt
(r io.Reader, n uint)
util.go:80
↓ 9 callers
Function
trimString
(x string)
id3v1.go:112
↓ 7 callers
Method
Name
(n string)
mp4.go:59
↓ 7 callers
Method
getString
(n []string)
mp4.go:289
↓ 6 callers
Method
Year
Year returns the year of the track.
tag.go:124
↓ 6 callers
Function
bindataRead
(data []byte, name string)
internal/id3v1_test/id3v1_testdata.go:25
↓ 5 callers
Method
Format
Format returns the metadata Format used to encode the data.
tag.go:103
↓ 5 callers
Method
Raw
Raw returns the raw mapping of retrieved tag names and associated values. NB: tag/atom names are not standardised between formats.
tag.go:146
↓ 5 callers
Method
Track
Track returns the track number and total tracks, or zero values if unavailable.
tag.go:130
↓ 5 callers
Function
decodeText
(enc byte, b []byte)
id3v2frames.go:323
↓ 5 callers
Function
getInt
(b []byte)
util.go:27
↓ 5 callers
Function
hashSum
(h hash.Hash)
sum.go:217
↓ 4 callers
Method
Album
Album returns the album name of the track.
tag.go:112
↓ 4 callers
Method
Artist
Artist returns the artist name of the track.
tag.go:115
↓ 4 callers
Method
Composer
Composer returns the composer of the track.
tag.go:121
↓ 4 callers
Method
Disc
Disc returns the disc number and total discs, or zero values if unavailable.
tag.go:133
↓ 4 callers
Method
Genre
Genre returns the genre of the track.
tag.go:127
↓ 4 callers
Method
Lyrics
Lyrics returns the lyrics, or an empty string if unavailable.
tag.go:139
↓ 4 callers
Function
ReadFrom
ReadFrom detects and parses audio file metadata tags (currently supports ID3v1,2.{2,3,4}, MP4, FLAC/OGG). Returns non-nil error if the format of the g
tag.go:30
↓ 4 callers
Method
Title
Title returns the title of the track.
tag.go:109
↓ 4 callers
Function
get7BitChunkedInt
(b []byte)
util.go:18
↓ 4 callers
Function
readUint
(r io.Reader, n uint)
util.go:72
↓ 3 callers
Method
AlbumArtist
AlbumArtist returns the album artist name of the track.
tag.go:118
↓ 3 callers
Method
Comment
Comment returns the comment, or an empty string if unavailable.
tag.go:142
↓ 3 callers
Method
Picture
Picture returns a picture, or nil if not available.
tag.go:136
↓ 3 callers
Method
Read
Read ogg packets, can return empty slice of packets and nil err if more data is needed
ogg.go:66
↓ 3 callers
Function
Sum
Sum creates a checksum of the audio file data provided by the io.ReadSeeker which is metadata (ID3, MP4) invariant.
sum.go:14
↓ 3 callers
Function
_filePath
(dir, name string)
internal/id3v1_test/id3v1_testdata.go:350
↓ 3 callers
Function
dataSplit
(b []byte, enc byte)
id3v2frames.go:357
↓ 3 callers
Function
newMetadataVorbis
()
vorbis.go:18
↓ 3 callers
Function
oggCRCUpdate
(crc uint32, tab *crc32Table, p []byte)
ogg.go:42
↓ 3 callers
Function
parseXofN
(s string)
id3v2metadata.go:107
↓ 3 callers
Function
read7BitChunkedUint
(r io.Reader, n uint)
util.go:88
↓ 3 callers
Function
readTextWithDescrFrame
IDv2.{3,4} -- Header <Header for 'Unsynchronised lyrics/text transcription', ID: "USLT"> <Header for 'Comment', ID: "COMM"> -- readTextWithDescrFrame(
id3v2frames.go:454
↓ 3 callers
Function
readUint32LittleEndian
(r io.Reader)
util.go:96
↓ 3 callers
Method
readVorbisComment
(r io.Reader)
vorbis.go:29
↓ 3 callers
Method
set
set the MusicBrainz tag to the given value.
mbz/mbz.go:51
↓ 2 callers
Function
Asset
Asset loads and returns the asset for the given name. It returns an error if the asset could not be found or could not be loaded.
internal/id3v1_test/id3v1_testdata.go:199
↓ 2 callers
Method
FileType
FileType returns the file type of the audio file.
tag.go:106
↓ 2 callers
Function
Identify
Identify identifies the format and file type of the data in the ReadSeeker.
id.go:9
↓ 2 callers
Method
ModTime
()
internal/id3v1_test/id3v1_testdata.go:66
↓ 2 callers
Method
Read
filter io.Reader which skip the Unsynchronisation bytes
id3v2.go:408
↓ 2 callers
Function
ReadID3v1Tags
ReadID3v1Tags reads ID3v1 tags from the io.ReadSeeker. Returns ErrNotID3v1 if there are no ID3v1 tags, otherwise non-nil error if there was a problem
id3v1.go:45
↓ 2 callers
Function
ReadID3v2Tags
ReadID3v2Tags parses ID3v2.{2,3,4} tags from the io.ReadSeeker into a Metadata, returning non-nil error on failure.
id3v2.go:428
↓ 2 callers
Method
String
()
cmd/check/main.go:133
↓ 2 callers
Function
decodeISO8859
(b []byte)
id3v2frames.go:380
↓ 2 callers
Function
decodeUTF16
(b []byte, bo binary.ByteOrder)
id3v2frames.go:409
↓ 2 callers
Function
doTest
(name string, track int, length int, t *testing.T)
id3v1_test.go:31
↓ 2 callers
Method
getInt
(n []string)
mp4.go:298
↓ 2 callers
Function
id3v2genre
id3v2genre parse a id3v2 genre tag and expand the numeric genres
id3v2.go:449
↓ 2 callers
Function
readAtomHeader
(r io.ReadSeeker)
mp4.go:224
↓ 2 callers
Function
readID3v2Header
readID3v2Header reads the ID3v2 header from the given io.Reader. offset it number of bytes of header that was read
id3v2.go:68
↓ 2 callers
Method
readPictureBlock
(r io.Reader)
vorbis.go:73
↓ 2 callers
Function
readTFrame
(b []byte)
id3v2frames.go:304
↓ 2 callers
Function
readUint64LittleEndian
(r io.Reader)
util.go:36
↓ 2 callers
Function
sizeToEndOffset
(r io.ReadSeeker, offset int64)
sum.go:102
↓ 1 callers
Function
AssetDir
AssetDir returns the file names below a certain directory embedded in the file by go-bindata. For example if you run go-bindata on data/... and data c
internal/id3v1_test/id3v1_testdata.go:269
↓ 1 callers
Function
AssetInfo
AssetInfo loads and returns the asset info for the given name. It returns an error if the asset could not be found or could not be loaded.
internal/id3v1_test/id3v1_testdata.go:225
↓ 1 callers
Function
Extract
Extract tags created by MusicBrainz Picard which can be used with with the MusicBrainz and LastFM APIs. See https://picard.musicbrainz.org/docs/mappin
mbz/mbz.go:108
↓ 1 callers
Method
IsDir
()
internal/id3v1_test/id3v1_testdata.go:69
↓ 1 callers
Method
Mode
()
internal/id3v1_test/id3v1_testdata.go:63
↓ 1 callers
Function
MustAsset
MustAsset is like Asset but panics when Asset would return an error. It simplifies safe initialization of global variables.
internal/id3v1_test/id3v1_testdata.go:213
↓ 1 callers
Function
ReadAtoms
ReadAtoms reads MP4 metadata atoms from the io.ReadSeeker into a Metadata, returning non-nil error if there was a problem.
mp4.go:77
↓ 1 callers
Function
ReadDSFTags
ReadDSFTags reads DSF metadata from the io.ReadSeeker, returning the resulting metadata in a Metadata implementation, or non-nil error if there was a
dsf.go:15
↓ 1 callers
Function
ReadFLACTags
ReadFLACTags reads FLAC metadata from the io.ReadSeeker, returning the resulting metadata in a Metadata implementation, or non-nil error if there was
flac.go:28
↓ 1 callers
Function
ReadOGGTags
ReadOGGTags reads OGG metadata from the io.ReadSeeker, returning the resulting metadata in a Metadata implementation, or non-nil error if there was a
ogg.go:141
↓ 1 callers
Function
RestoreAsset
RestoreAsset restores an asset under the given directory
internal/id3v1_test/id3v1_testdata.go:309
↓ 1 callers
Function
SumAll
SumAll returns a checksum of the content from the reader (until EOF).
sum.go:47
↓ 1 callers
Function
SumAtoms
SumAtoms constructs a checksum of MP4 audio file data provided by the io.ReadSeeker which is metadata invariant.
sum.go:58
↓ 1 callers
Function
SumFLAC
SumFLAC costructs a checksum of the FLAC audio file data provided by the io.ReadSeeker (ignores metadata fields).
sum.go:169
↓ 1 callers
Function
SumID3v1
SumID3v1 constructs a checksum of MP3 audio file data (assumed to have ID3v1 tags) provided by the io.ReadSeeker which is metadata invariant.
sum.go:117
↓ 1 callers
Function
SumID3v2
SumID3v2 constructs a checksum of MP3 audio file data (assumed to have ID3v2 tags) provided by the io.ReadSeeker which is metadata invariant.
sum.go:138
↓ 1 callers
Function
compareMetadata
(t *testing.T, m Metadata, tt testMetadata)
tag_test.go:102
↓ 1 callers
Function
decodeLocation
(l string)
cmd/check/main.go:23
↓ 1 callers
Function
decodeUTF16WithBOM
(b []byte)
id3v2frames.go:388
↓ 1 callers
Method
do
(ch <-chan string)
cmd/check/main.go:151
↓ 1 callers
Function
extractID3
extractID3 attempts to extract MusicBrainz Picard tags from m.Raw(), where m.Format is assumed to be a supported version of ID3.
mbz/mbz.go:67
↓ 1 callers
Function
extractMP4Vorbis
extractMP4Vorbis attempts to extract MusicBrainz Picard tags from m.Raw(), where m.Format is assumed to be MP4 or VORBIS.
mbz/mbz.go:96
↓ 1 callers
Function
fuzzIssue73
(in []byte)
sum_test.go:15
↓ 1 callers
Function
internalId3v1_testSample_ms932_v11Mp3Bytes
()
internal/id3v1_test/id3v1_testdata.go:78
↓ 1 callers
Function
internalId3v1_testSample_ms932_v1Mp3Bytes
()
internal/id3v1_test/id3v1_testdata.go:98
↓ 1 callers
Function
internalId3v1_testSample_usascii_v11Mp3Bytes
()
internal/id3v1_test/id3v1_testdata.go:118
↓ 1 callers
Function
internalId3v1_testSample_usascii_v1Mp3Bytes
()
internal/id3v1_test/id3v1_testdata.go:138
↓ 1 callers
Function
internalId3v1_testSample_utf8_v11Mp3Bytes
()
internal/id3v1_test/id3v1_testdata.go:158
↓ 1 callers
Function
internalId3v1_testSample_utf8_v1Mp3Bytes
()
internal/id3v1_test/id3v1_testdata.go:178
↓ 1 callers
Function
oggCRCTable
(poly uint32)
ogg.go:24
↓ 1 callers
Function
parseComment
(c string)
vorbis.go:148
↓ 1 callers
Function
printMetadata
(m tag.Metadata)
cmd/tag/main.go:79
↓ 1 callers
Function
readAPICFrame
IDv2.{3,4} -- Header <Header for 'Attached picture', ID: "APIC"> -- readAPICFrame Text encoding $xx MIME type <text string> $00 Picture type
id3v2frames.go:613
↓ 1 callers
Method
readAtomData
(r io.ReadSeeker, name string, size uint32, processedData []string)
mp4.go:138
↓ 1 callers
Method
readAtoms
(r io.ReadSeeker)
mp4.go:86
↓ 1 callers
Function
readCustomAtom
Generic atom. Should have 3 sub atoms : mean, name and data. We check that mean is "com.apple.iTunes" or others and we use the subname as the name, an
mp4.go:239
↓ 1 callers
Method
readFLACMetadataBlock
(r io.ReadSeeker)
flac.go:58
next →
1–100 of 218, ranked by callers