Translation of section 2.8 to Portuguese (PT_BR)
This commit is contained in:
@@ -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
|
break default func interface select
|
||||||
case defer go map struct
|
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
|
const fallthrough if range type
|
||||||
continue for import return var
|
continue for import return var
|
||||||
|
|
||||||
- `var` and `const` are used to define variables and constants.
|
- `var` e `const` são usadas para definir variáveis e constantes.
|
||||||
- `package` and `import` are for package use.
|
- `package` e `import` são para o uso de pacotes.
|
||||||
- `func` is used to define functions and methods.
|
- `func` é usada para definir funções e métodos.
|
||||||
- `return` is used to return values in functions or methods.
|
- `return` é usada para retornar valores em funções ou métodos.
|
||||||
- `defer` is used to define defer functions.
|
- `defer` é usada para definir funções defer (funções de adiamento).
|
||||||
- `go` is used to start a new goroutine.
|
- `go` é usada para iniciar uma nova goroutine.
|
||||||
- `select` is used to switch over multiple channels for communication.
|
- `select` é usada para alternar entre múltiplos canais para comunicação.
|
||||||
- `interface` is used to define interfaces.
|
- `interface` é usada para definir interfaces.
|
||||||
- `struct` is used to define special customized types.
|
- `struct` é usada para definir tipos personalizados.
|
||||||
- `break`, `case`, `continue`, `for`, `fallthrough`, `else`, `if`, `switch`, `goto` and `default` were introduced in section 2.3.
|
- `break`, `case`, `continue`, `for`, `fallthrough`, `else`, `if`, `switch`, `goto` e `default` foram introduzidas na seção 2.3.
|
||||||
- `chan` is the type of channel for communication among goroutines.
|
- `chan` é o tipo de canal para comunicação entre goroutines.
|
||||||
- `type` is used to define customized types.
|
- `type` é usada para definir tipos personalizados.
|
||||||
- `map` is used to define map which is similar to hash tables in other languages.
|
- `map` é usada para definir um map (mapa) que é semelhante a tabelas hash em outras linguagens.
|
||||||
- `range` is used for reading data from `slice`, `map` and `channel`.
|
- `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
|
## Links
|
||||||
|
|
||||||
- [Directory](preface.md)
|
- [Sumário](preface.md)
|
||||||
- Previous section: [Concurrency](02.7.md)
|
- Seção anterior: [Concorrência](02.7.md)
|
||||||
- Next chapter: [Web foundation](03.0.md)
|
- Próximo Capítulo: [Web foundation](03.0.md)
|
||||||
|
|||||||
Reference in New Issue
Block a user