1 link tagged with all of: safety + programming + go + errors
Click any tag below to further narrow down your results
Links
This article explains the new errors.AsType function in Go 1.26, which offers a type-safe way to check for specific error types. Unlike the older errors.As, it simplifies code by eliminating the need for intermediate variable declarations and reduces the risk of runtime panics. It's recommended for new code while errors.As remains available.