Re:Error stack traces in Go with x/xerror
by cy_hauser on Tuesday August 24, 2021 @05:31AM
(#28286639)
It returns nothing or the compiler/linter/ide will tell you.
Re:Error stack traces in Go with x/xerror
by tsimionescu on Tuesday August 24, 2021 @05:50AM
(#28286764)
Which compiler/linter/IDE is that? The Go compiler and linter certainly don't tell you:
https://play.golang.org/p/k-eTs3dC_wK
Note that Go playground also runs go vet, a static analysis tool.
LoadData(&data)
Does this function return nothing or an error ?