bump api to 1.15.0

This commit is contained in:
sentriz
2020-06-06 20:52:23 +01:00
parent 9246429cac
commit 06ffa7d0d3
3 changed files with 36 additions and 3 deletions

22
cmd/gonictag/main.go Normal file
View File

@@ -0,0 +1,22 @@
package main
import (
"fmt"
"log"
"os"
_ "github.com/jinzhu/gorm/dialects/sqlite"
"go.senan.xyz/gonic/server/scanner/tags"
)
func main() {
t, err := tags.New(os.Args[1])
if err != nil {
log.Fatalf("error reading: %v", err)
}
fmt.Println("artist", t.Album())
fmt.Println("aartist", t.AlbumArtist())
fmt.Println("len", t.Length())
fmt.Println("br", t.Bitrate())
}