Documentation ¶
Overview ¶
id3v1 is a package allowing the extraction of id3v1 tags. See http://en.wikipedia.org/wiki/ID3#ID3v1
Index ¶
Constants ¶
View Source
const ( Size = 128 HeaderCode = "TAG" )
View Source
const (
TagPlusSize = 227
)
View Source
const (
// TagSize is the size in bytes of an id3v1 tag
TagSize = 128
)
Variables ¶
View Source
var (
HeaderTagID = []byte{0x54, 0x41, 0x47}
)
View Source
var ( //TagCode is the byte representation of "TAG" TagCode = []byte{84, 65, 71} )
View Source
var (
TagPlusCode = []byte{84, 65, 71, 43} // "TAG+"
)
Functions ¶
This section is empty.
Types ¶
type Tag ¶
type Tag struct { Title [30]byte Artist [30]byte Album [30]byte Year [4]byte // The track number is stored in the last two bytes of the comment field. // If the comment is 29 or 30 characters long, no track number can be stored. Comment [30]byte ZeroByte byte Track byte Genre byte }
Tag contains the various information stored in a id3 v1 tag. Strings are either space or zero-padded. Unset string entries are filled using an empty string. ID3v1 is 128 bytes long
Click to show internal directories.
Click to hide internal directories.