From d6f7646538690349de11ac1c7b77aafa7ed60f33 Mon Sep 17 00:00:00 2001 From: quadrifoglio Date: Thu, 24 Dec 2015 17:52:26 +0100 Subject: [PATCH] Fixed & renamed example --- {test => gomkvinfo}/main.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) rename {test => gomkvinfo}/main.go (64%) diff --git a/test/main.go b/gomkvinfo/main.go similarity index 64% rename from test/main.go rename to gomkvinfo/main.go index 6cb598c..d633c67 100644 --- a/test/main.go +++ b/gomkvinfo/main.go @@ -5,14 +5,14 @@ import ( "io/ioutil" "os" - "github.com/quadrifoglio/go-webm" + "github.com/quadrifoglio/go-mkv" ) func main() { - fmt.Println("Go-WebM") + fmt.Println("go-mkv") if len(os.Args) <= 1 { - fmt.Fprintf(os.Stderr, "Usage: webminfo [options] \n") + fmt.Fprintf(os.Stderr, "Usage: gomkvinfo [options] \n") os.Exit(1) } @@ -22,8 +22,8 @@ func main() { os.Exit(1) } - doc := webm.InitDocument(file) - err = doc.ParseAll(func(el webm.Element) { + doc := mkv.InitDocument(file) + err = doc.ParseAll(func(el mkv.Element) { fmt.Printf("Element %s - %d bytes\n", el.Name, el.Size) })