diff --git a/pt-br/02.8.md b/pt-br/02.8.md index b1306758..8830033a 100644 --- a/pt-br/02.8.md +++ b/pt-br/02.8.md @@ -1,6 +1,6 @@ -# 2.8 Summary +# 2.8 Resumo -In this chapter, we mainly introduced the 25 Go keywords. Let's review what they are and what they do. +Neste capítulo introduzimos principalmente as 25 palavras-chave em Go. Vamos rever quais são elas e o que elas fazem. break default func interface select case defer go map struct @@ -8,25 +8,25 @@ In this chapter, we mainly introduced the 25 Go keywords. Let's review what they const fallthrough if range type continue for import return var -- `var` and `const` are used to define variables and constants. -- `package` and `import` are for package use. -- `func` is used to define functions and methods. -- `return` is used to return values in functions or methods. -- `defer` is used to define defer functions. -- `go` is used to start a new goroutine. -- `select` is used to switch over multiple channels for communication. -- `interface` is used to define interfaces. -- `struct` is used to define special customized types. -- `break`, `case`, `continue`, `for`, `fallthrough`, `else`, `if`, `switch`, `goto` and `default` were introduced in section 2.3. -- `chan` is the type of channel for communication among goroutines. -- `type` is used to define customized types. -- `map` is used to define map which is similar to hash tables in other languages. -- `range` is used for reading data from `slice`, `map` and `channel`. +- `var` e `const` são usadas para definir variáveis e constantes. +- `package` e `import` são para o uso de pacotes. +- `func` é usada para definir funções e métodos. +- `return` é usada para retornar valores em funções ou métodos. +- `defer` é usada para definir funções defer (funções de adiamento). +- `go` é usada para iniciar uma nova goroutine. +- `select` é usada para alternar entre múltiplos canais para comunicação. +- `interface` é usada para definir interfaces. +- `struct` é usada para definir tipos personalizados. +- `break`, `case`, `continue`, `for`, `fallthrough`, `else`, `if`, `switch`, `goto` e `default` foram introduzidas na seção 2.3. +- `chan` é o tipo de canal para comunicação entre goroutines. +- `type` é usada para definir tipos personalizados. +- `map` é usada para definir um map (mapa) que é semelhante a tabelas hash em outras linguagens. +- `range` é usada para ler dados de `slice`, `map` e `channel`. -If you understand how to use these 25 keywords, you've learned a lot of Go already. +Se você entender como utilizar estas 25 palavras-chave, você já aprendeu bastante sobre Go. ## Links -- [Directory](preface.md) -- Previous section: [Concurrency](02.7.md) -- Next chapter: [Web foundation](03.0.md) +- [Sumário](preface.md) +- Seção anterior: [Concorrência](02.7.md) +- Próximo Capítulo: [Web foundation](03.0.md)