if err := decoder.Decode(results); err != nil {
    return nil, err
}

Its a little more go like to lump the call and check together into the if statement.