Export error variables that are returned from exported methods; fix d…#16
Export error variables that are returned from exported methods; fix d…#16slessard wants to merge 1 commit intofatih:masterfrom
Conversation
…ocumentation for Get method
|
Hi @slessard If we expose these variables, they will become part of the library. I'm not sure I want to extend the API surface. How do you use it? I'm not sure exporting these variables is useful, but maybe I'm missing something. Thank you |
|
Exporting the error variables would allow me to check the type of error in a manner that is friendly to recent versions of Go using the Without exported error variables I don't know of a good way to test the error return. This forces me to make assumptions about the structtags functions and the errors they return. |
|
I see the biggest pro argument as being able to tell whether or not a tag exists, just like @slessard has written an example for. It would be nice to skip an operation if the tag simply doesn't exist |
|
Any update here for 2 years wait? |
Export error variables that are returned from exported methods
fix documentation for Get method