1. Taru Karttunen
  2. taglib

Wiki

Clone wiki

taglib / Home

taglib.go

Interface to the taglib audio tagging library with MIT license.

Installing

Install taglib C interface including header files. Then

hg clone http://bitbucket.org/taruti/taglib.go && cd taglib.go && make install

Example

package main

import "bitbucket.org/taruti/taglib.go"
import "fmt"

func main() {
    f := taglib.Open("foo.mp3")
    if f==nil { return }
    defer f.Close()
    fmt.Printf("%v\n",f.GetTags())
    fmt.Printf("%v\n",f.GetProperties())
}

Updated