Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
Cap. 23 – Tratamento de Erros – 1. Entendendo erros
Play lesson

Aprenda Go 🇧🇷 - Cap. 23 – Tratamento de Erros – 1. Entendendo erros

5.0 (2)
47 learners

What you'll learn

This course includes

  • 21.3 hours of video
  • Certificate of completion
  • Access on mobile and TV

Summary

Keywords

Full Transcript

- Para quem já programa em outras linguagens: - Em Go não temos exceções. → https://golang.org/doc/faq#exceptions - "We believe that coupling exceptions to a control structure, as in the try-catch-finally idiom, results in convoluted code." - "Go's multi-value returns make it easy to report an error without overloading the return value. A canonical error type, coupled with Go's other features, makes error handling pleasant but quite different from that in other languages." - Aventureiros: https://blog.golang.org/error-handling-and-go - É interessante criar o hábito de lidar com erros imediatamente, similar a e.g. defer close. - package builtin, type error interface - package errors

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

Related Courses

FAQs

Course Hive
Download CourseHive
Keep learning anywhere