|
|
|
|
|
by frou_dh
1976 days ago
|
|
Go's thing is more "encourage" to handle errors than "force", given that the compiler has nothing to say about unhandled errors in the presence of certain variable reuse patterns, or completely unassigned returns. https://play.golang.org/p/mu5fbUrV322 |
|
If for some reasons the project consider that checking errors should be enforced, that’s simple to do by using go-lint or other linters.