code: func ConsoleAPICallback(cb func([]interface{})) EventCallback {
  	return func(params Params) {
  		l := []interface{}{"console." + params["type"].(string)}
  
  		for _, a := range params["args"].([]interface{}) {
  			arg := a.(map[string]interface{})
  
  			if arg["value"] != nil {
  				l = append(l, arg["value"])
  			} else if arg["preview"] != nil {
  				arg := arg["preview"].(map[string]interface{})
  
  				v := arg["description"].(string) + "{"
  
  				for i, p := range arg["properties"].([]interface{}) {
  					if i > 0 {
  						v += ", "
  					}
  
  					prop := p.(map[string]interface{})
  					if prop["name"] != nil {
  						v += fmt.Sprintf("%q: ", prop["name"])
  					}
  
  					v += fmt.Sprintf("%v", prop["value"])
  				}
  
  				v += "}"
  				l = append(l, v)
  			} else {
  				l = append(l, arg["type"].(string))
  			}
  
  		}
  
  		cb(l)
  	}
  }
docs: // ConsoleAPICallback processes the Runtime.consolAPICalled event and returns printable info