Change the show debug names

This commit is contained in:
joeyak 2019-03-31 15:59:57 -04:00
parent bea491e1c0
commit e798684b3e
1 changed files with 12 additions and 7 deletions

View File

@ -171,13 +171,18 @@ func isValidName(this js.Value, v []js.Value) interface{} {
}
func debugValues(v []js.Value) {
fmt.Printf("timestamp: %#v\n", timestamp)
fmt.Printf("auth: %#v\n", auth)
fmt.Printf("color: %#v\n", color)
fmt.Printf("currentSuggestion: %#v\n", currentSug)
fmt.Printf("filteredSuggestions: %#v\n", filteredSug)
fmt.Printf("names: %#v\n", names)
fmt.Printf("emoteNames: %#v\n", emoteNames)
for k, v := range map[string]interface{}{
"timestamp": timestamp,
"auth": auth,
"color": color,
"current suggestion": currentSug,
"current suggestion type": currentSugType,
"filtered suggestions": filteredSug,
"user names": names,
"emote names": emoteNames,
} {
fmt.Printf("%s: %#v\n", k, v)
}
}
func main() {