Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
Cap. 8 – Agrupamentos de Dados – 9. Maps: introdução
Play lesson

Aprenda Go 🇧🇷 - Cap. 8 – Agrupamentos de Dados – 9. Maps: introdução

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

- Utiliza o formato key:value. - E.g. nome e telefone - Performance excelente para lookups. - map[key]value{ key: value } - Acesso: m[key] - Key sem value retorna zero. Isso pode trazer problemas. - Para verificar: comma ok idiom. - v, ok := m[key] - ok é um boolean, true/false - Na prática: if v, ok := m[key]; ok { } - Para adicionar um item: m[v] = value - Maps *não tem ordem.* - Go Playground: https://play.golang.org/p/JXDdJan8Ev

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