Skip to content
forked from bpowers/go-id3

ID3 parsing library for go. New development is taking place in a rewrite: http://github.com/bobertlo/go-id3tag

License

Notifications You must be signed in to change notification settings

bobertlo/go-id3

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.ReadSeeker and away you go!

package main
import (
        "os"
        "fmt"
        "github.com/bobertlo/go-id3/id3"
)

func main() {
        f, err := os.Open("foo.mp3")
        if err != nil {
                return
        }
        defer f.Close()
        tags, err := id3.ReadFile(f)
        if err != nil {
                return
        }
        fmt.Println("Title: ", tags["title"])
        fmt.Println("Artist: ", tags["artist"])
}

Examples

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

go get github.com/bobertlo/go-id3/tagreader
tagreader path/to/file.mp3 [...]

About

ID3 parsing library for go. New development is taking place in a rewrite: http://github.com/bobertlo/go-id3tag

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%