client/client.go
func (c *Client) InsertRow(projectID, datasetID, tableID string, rowData map[string]interface{}) error {
	service, err := c.connect()
	if err != nil {
		return err
	}

	insertRequest := buildBigQueryInsertRequest([]map[string]interface{}{rowData})

	result, err := service.Tabledata.InsertAll(projectID, datasetID, tableID, insertRequest).Do()
	if err != nil {
		c.printDebug("Error inserting row: ", err)
		return err
	}

	if len(result.InsertErrors) > 0 {
		return errors.New("Error inserting row")
	}

	return nil
}
func (c *Client) InsertRow(projectID, datasetID, tableID string, rowData map[string]interface{}) error {
	service, err := c.connect()
	if err != nil {
		return err
	}

	insertRequest := buildBigQueryInsertRequest([]map[string]interface{}{rowData})

	result, err := service.Tabledata.InsertAll(projectID, datasetID, tableID, insertRequest).Do()
	if err != nil {
		c.printDebug("Error inserting row: ", err)
		return err
	}

	if len(result.InsertErrors) > 0 {
		return errors.New("Error inserting row")
	}

	return nil
}
// InsertRow inserts a new row into the desired project, dataset and table or returns an error