From 6bfb7dce349f27186db36856e97199b6af0ab426 Mon Sep 17 00:00:00 2001 From: milarin Date: Sat, 14 Jan 2023 11:53:36 +0100 Subject: [PATCH] PrintPriorityTables implemented --- utils.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/utils.go b/utils.go index 141a1c2..7986030 100644 --- a/utils.go +++ b/utils.go @@ -1,6 +1,7 @@ package logic import ( + "fmt" "sort" "strings" @@ -48,3 +49,11 @@ func Map2Table[K comparable](title string, m map[K]int) string { return table.String() } + +func PrintPriorityTables() { + fmt.Println("generated priority values:") + fmt.Print(Map2Table("language", PreferredLanguages)) + fmt.Print(Map2Table("subtitle", PreferredSubtitles)) + fmt.Print(Map2Table("resolution", PreferredResolutions)) + fmt.Println() +}