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) { func debugValues(v []js.Value) {
fmt.Printf("timestamp: %#v\n", timestamp) for k, v := range map[string]interface{}{
fmt.Printf("auth: %#v\n", auth) "timestamp": timestamp,
fmt.Printf("color: %#v\n", color) "auth": auth,
fmt.Printf("currentSuggestion: %#v\n", currentSug) "color": color,
fmt.Printf("filteredSuggestions: %#v\n", filteredSug) "current suggestion": currentSug,
fmt.Printf("names: %#v\n", names) "current suggestion type": currentSugType,
fmt.Printf("emoteNames: %#v\n", emoteNames) "filtered suggestions": filteredSug,
"user names": names,
"emote names": emoteNames,
} {
fmt.Printf("%s: %#v\n", k, v)
}
} }
func main() { func main() {