Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Encoding ¶ added in v0.5.1
Primitive for encoding.
If you are user of id3v2 library, all list of allowed encodings you can find in documentation in variables. For convenience, by default all frame constructors set UTF-8 encoding to frames. You can set by yourself encoding to frames via SetEncoding method. For example:
comm := id3v2.NewCommentFrame() comm.SetEncoding(id3v2.ENISO) comm.SetLanguage("eng") comm.SetDescription(string([]byte{68, 101, 115, 99})) // "Desc" on ISO-8859-1 comm.SetText(string([]byte{84, 101, 120, 116})) // "Text" on ISO-8859-1 tag.AddCommentFrame(comm)
Click to show internal directories.
Click to hide internal directories.