Another comment already mentioned that the OP don't understand how to work with errors in Go.
As with any language, Go has its own philosophy and you have to first understand why it was created and what it brings to the table. To summarize it in one phrase "Less is more"
I think this post should be a mandatory reading for everybody learning Go. If this resonates with you it's possible you're gonna like the language:
As with any language, Go has its own philosophy and you have to first understand why it was created and what it brings to the table. To summarize it in one phrase "Less is more"
I think this post should be a mandatory reading for everybody learning Go. If this resonates with you it's possible you're gonna like the language:
https://commandcenter.blogspot.com/2012/06/less-is-exponenti...