Why doesn't GO have a try-catch blocks? Every file I see have dozens similar lines:
if err != nil { log.Fatal(err) }
In C# I can just log error on one place and transaction will be automatically rolled back. Much less code.
if err != nil { log.Fatal(err) }
In C# I can just log error on one place and transaction will be automatically rolled back. Much less code.
[0]: https://github.com/golang/go/issues/32437 [1]: https://github.com/golang/go/issues/32804 [2]: https://github.com/golang/go/issues/32825