in customers.go [29:35]
func getCustomer(ctx context.Context, db *sqlx.DB, id int) (*Customer, error) {
customers, err := queryCustomers(ctx, db, &id, nil, nil)
if err != nil || len(customers) == 0 {
return nil, err
}
return &customers[0], nil
}