The strconv.NumError struct (https://golang.org/pkg/strconv/#NumError) contains the error which caused the conversion to fail in the Err field. It seems like it would be nice for NumError to implement the Unwrap() error method so that, for example, errors.Is(err, strconv.ErrRange) could be used. By exposing the struct field it is already part of the API and implementing the Unwrap method is a more convenient and standard way to use it.