Added a patch to show languages

This commit is contained in:
Eduard Urbach 2018-10-28 12:46:55 +09:00
parent 342948dbb3
commit 9b6d2db7f0

View File

@ -0,0 +1,19 @@
package main
import (
"fmt"
"github.com/animenotifier/arn"
)
func main() {
languages := map[string]int{}
for user := range arn.StreamUsers() {
languages[user.Language]++
}
for language, users := range languages {
fmt.Printf("* [%s] %d users\n", language, users)
}
}