|
|
|
|
|
by aikah
3517 days ago
|
|
> You can test the interface. A type is just an interface around memory, albeit more consrained. Wow, again, that's not the problem here. Errors in the standard libraries are defined at values. There is no point testing it as interfaces, it will not give you the nature of the error, since they are all defined with fmt.Errorf . Do you understand now the problem ? the problem is being consistant across codebases between errors are values and errors as types. |
|