الانتقال إلى المحتوى الرئيسي
٠

هذا الدرس بالإنجليزية حاليًا.

Errors are just values

Go has no exceptions for everyday failures. A function that can fail returns an error as its last result, and the caller checks it right there. Failures stay visible in the code, exactly where they can happen.