Change the show debug names
This commit is contained in:
parent
bea491e1c0
commit
e798684b3e
19
wasm/main.go
19
wasm/main.go
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue