Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

ID3 parsing library for go

branch: master

Updating go-id3 for Go 1 release.

Notable changes:
  - Makefile removed in favour of go command
  - expand() function is more aptly named ISO8859_1ToUTF8() and uses []rune instead of []int
  - Test added for ISO8859_1ToUTF8()
  - Refactored id3_test.go a little bit
  - tagreader example application is now under id3/tagreader package
latest commit b139b6a612
Andrew Scherkus authored May 21, 2012
Octocat-spinner-32 examples Updating go-id3 for Go 1 release. May 21, 2012
Octocat-spinner-32 src Updating go-id3 for Go 1 release. May 21, 2012
Octocat-spinner-32 test Updating go-id3 for Go 1 release. May 21, 2012
Octocat-spinner-32 .gitignore Updating go-id3 for Go 1 release. May 21, 2012
Octocat-spinner-32 LICENSE Initial commit. August 18, 2011
Octocat-spinner-32 README.md Updating go-id3 for Go 1 release. May 21, 2012
Octocat-spinner-32 TODO Updating go-id3 for Go 1 release. May 21, 2012
README.md

ID3 Parsing For Go

Andrew Scherkus May 21, 2012

Introduction

Simple ID3 parsing library for go based on the specs at www.id3.org.

It doesn't handle everything but at least gets the imporant bits like artist, album, track, etc...

Usage

Pass in a suitable io.Reader and away you go!

fd, _ := os.Open("foo.mp3")
defer fd.Close()
file := id3.Read(fd)
if file != nil {
        fmt.Println(file)
}

Examples

An example tag reading program can be found under id3/tagreader.

go install id3/tagreader
$GOPATH/bin/tagreader path/to/file.mp3 [...]
Something went wrong with that request. Please try again.