id3

package
v0.0.0-...-ddbbca1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 8, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parser

type Parser struct{}

Parser parses ID3v2 and ID3v1 metadata from MP3 files.

Supported formats:

  • ID3v2.4 (preferred, released 2000)
  • ID3v2.3 (common, released 1999)
  • ID3v2.2 (legacy, released 1998)
  • ID3v1 (fallback, at end of file, released 1996)

The parser uses io.ReaderAt for efficient random access without loading the entire file into memory.

func New

func New() *Parser

New creates a new ID3 parser

func (*Parser) Detect

func (p *Parser) Detect(r io.ReaderAt) bool

Detect checks if the data contains ID3v2 tags at the beginning

func (*Parser) Name

func (p *Parser) Name() string

Name returns the parser name

func (*Parser) Parse

func (p *Parser) Parse(r io.ReaderAt) ([]parser.Directory, *parser.ParseError)

Parse extracts ID3 metadata from MP3 file

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL