diff --git a/cmd/streamdata/format.go b/cmd/streamdata/format.go new file mode 100644 index 0000000..0b4cf8b --- /dev/null +++ b/cmd/streamdata/format.go @@ -0,0 +1,16 @@ +package main + +import ( + "fmt" + + "git.gensokyo.uk/yonah/streamdata" +) + +// printVOD prints a text representation of [streamdata.VOD] to stdout. +func printVOD(v *streamdata.VOD) { + fmt.Println("Title :", v.Title) + fmt.Println("Date :", v.Date.Format("2006-01-02")) + if v.Category != "" { + fmt.Println("Category:", v.Category) + } +}