}
for idx, cv := range cvs {
if m == cv.Constraints {
// Note: cvs here is the slice returned by Client.GetValue. We want to return a
// pointer into that slice so that the converted value is cached as long as the
// Client keeps the []ConstrainedValue alive. See the comment on
// Client.GetValue.
return &cvs[idx], nil
}
}
}