Skip to content

Commit

Permalink
Fixed & renamed example
Browse files Browse the repository at this point in the history
  • Loading branch information
quadrifoglio committed Dec 24, 2015
1 parent b97c913 commit d6f7646
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/main.go → gomkvinfo/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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] <file>\n")
fmt.Fprintf(os.Stderr, "Usage: gomkvinfo [options] <file>\n")
os.Exit(1)
}

Expand All @@ -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)
})

Expand Down

0 comments on commit d6f7646

Please sign in to comment.