bump api to 1.15.0
This commit is contained in:
22
cmd/gonictag/main.go
Normal file
22
cmd/gonictag/main.go
Normal 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())
|
||||
}
|
||||
Reference in New Issue
Block a user