PrintPriorityTables implemented

This commit is contained in:
milarin 2023-01-14 11:53:36 +01:00
parent 96a37777bb
commit 6bfb7dce34

View File

@ -1,6 +1,7 @@
package logic package logic
import ( import (
"fmt"
"sort" "sort"
"strings" "strings"
@ -48,3 +49,11 @@ func Map2Table[K comparable](title string, m map[K]int) string {
return table.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()
}