Skip to content

Commit d0fbebe

Browse files
committed
Merge pull request astaxie#495 from gustavokuklinski/master
Translate INSTALLATION section, updated preface
2 parents 756df2c + b84c63d commit d0fbebe

File tree

4 files changed

+73
-66
lines changed

4 files changed

+73
-66
lines changed

pt-br/01.0.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@
22

33
Seja bem vindo ao mundo Go, vamos começar a explorar!
44

5-
Go é uma linguagem compilada rápida incluindo coletor de lixo e multiplataforma. Veja abaixo algumas vantagens de utiliza-la:
5+
Go é uma linguagem compilada rápida incluindo coletor de lixo e multiplataforma. Veja abaixo algumas vantagens de utiliza la:
66

77
- Compilação rápida em projetos de todos os portes.
88
- Mantém um modelo padrão no desenvolvimento de software, sendo assim evitando futuros problemas associados ao estilo C de desenvolvimento.
9-
- É estática, não tem niveis no seu sistema de tipo, então não precisaremos gastar tempo trabalhando com a relação de tipos de variaveis. É bem leve e orientada a objetos.
9+
- É estática, não tem níveis no seu sistema de tipo, então não precisaremos gastar tempo trabalhando com a relação de tipos de variaveis. É bem leve e orientada a objetos.
1010
- Realiza a coleta de lixo. Isso melhora o desempenho e a comunicação com diversos sistemas operacionais;
11-
- Foi desenvida para todas as plataformas.
11+
- Foi desenvolvida para todas as plataformas.
1212

1313
Go é uma linguagem compilada. Combina a eficiência de desenvolvimento das linguagens interpretadas e dinâmicas por sua segurança em tipos estáticos. É uma ótima escolha por ser multi-plataforma e moderna. Por um tempo não haviam pacotes e ferramentas de terceiros para resolver problemas comuns e tudo tinha que ser feito e refeito, como reconstruir a roda, por isso nasceu o interesse na linguagem.
1414

15-
Nesse capitulo, vamos aprender a instalar e configurar nosso próprio ambiente de desenvolviment.
15+
Nesse capitulo, vamos aprender a instalar e configurar nosso próprio ambiente de desenvolvimento.
1616

1717
## Links
1818

19-
- [Directory](preface.md)
19+
- [Sumário](preface.md)
2020
- Próxima sessão: [Instalação](01.1.md)

pt-br/01.1.md

+56-49
Original file line numberDiff line numberDiff line change
@@ -1,121 +1,128 @@
1-
# 1.1 Installation
1+
# 1.1 Instalação
22

3-
## Three ways to install Go
3+
## Os 3 modos de instalar Go
44

5-
There are many ways to configure the Go development environment on your computer, and you can choose whichever one you like. The three most common ways are as follows.
5+
Existem muitas maneiras de configurar o ambiente de desenvolvimento em seu computador, você pode escolher o modo que preferir. Seguem abaixo os três modos mais comuns de instalar a linguagem:
66

77

8-
- Official installation packages.
9-
- The Go team provides convenient installation packages in Windows, Linux, Mac and other operating systems. This is probably the easiest way to get started.
10-
- Install it yourself from source code.
11-
- Popular with developers who are familiar with Unix-like systems.
12-
- Using third-party tools.
13-
- There are many third-party tools and package managers for installing Go, like apt-get in Ubuntu and homebrew for Mac.
14-
15-
In case you want to install more than one version of Go on a computer, you should take a look at a tool called [GVM](https://github.com/moovweb/gvm). It is the best tool I've seen so far for accomplishing this task, otherwise you'd have to deal with it yourself.
8+
- Pacotes de instalação oficiais.
9+
- O time por trás do Go, proporciona um modo muito conveniente de instalação para Windows, Linux, Mac e outros sistemas operacionais. Esse é o método mais simples para iniciar.
10+
11+
- Instalação através do código fonte.
12+
- Bem popular entre desenvolvedores familiares com sistemas UNIX-like
13+
14+
- Por terceiros(Pacotes não oficiais).
15+
- Existem muitos pacotes de terceiros, costumam vir em gerenciadores de pacotes como apt-get no Ubuntu ou homebrew no Mac.
1616

17-
## Install from source code
17+
Caso você queira ter mais de uma versão de Go no seu computador, existe a opção de instalar através do Go Version Manager(GVM). É a melhor ferramenta que tenho visto por cumprir bem as tarefas, entretanto você deverá escolher o modo que ira ser melhor. [GVM](https://github.com/moovweb/gvm)
1818

19-
Because some parts of Go are written in Plan 9 C and AT&T assembler, you have to install a C compiler before taking the next step.
19+
## Instalando pelo Código Fonte
2020

21-
On a Mac, if you have installed Xcode, you already have the compiler.
21+
Algumas partes de Go foram escritas em Plan 9 C e AT&T assembler, você precisará instalar um compilador de C antes de realizar os passos a seguir.
2222

23-
On Unix-like systems, you need to install gcc or a similar compiler. For example, using the package manager apt-get (included with Ubuntu), one can install the required compilers as follows:
23+
No MAC, você precisará do Xcode, que já vem com o compilador incluso.
24+
25+
Em sistemas UNIX-Linux, você deverá instalar o GCC ou algum compilador semelhante. Por exemplo: via apt-get(Ubuntu/Debian) podemos instalar com a seguinte linha no terminal:
2426

2527
`sudo apt-get install gcc libc6-dev`
2628

27-
On Windows, you need to install MinGW in order to install gcc. Don't forget to configure your environment variables after the installation has completed.( ***Everything that looks like this means it's commented by a translator: If you are using 64-bit Windows, you should install the 64-bit version of MinGW*** )
29+
Caso seja Fedora, OpenSuse ou outras distribuições, consulte a documentação oficial.
30+
31+
Para o Windows, será necessário ter o MinGW(Consulte a arquitetura do seu Windows antes de instalar) para instalar o GCC. Não se esqueça de configurar as variaveis do sistemas após a instalação ser concluída.
2832

29-
At this point, execute the following commands to clone the Go source code and compile it.( ***It will clone the source code to your current directory. Switch your work path before you continue. This may take some time.*** )
33+
Para finalmente realizar a instalação através do código fonte, necessitamos realizar o Download e configuração do Git, copiar o repositório e instalar.
3034

3135
git clone https://go.googlesource.com/go
3236
cd go/src
3337
./all.bash
3438

35-
A successful installation will end with the message "ALL TESTS PASSED."
3639

37-
On Windows, you can achieve the same by running `all.bat`.
40+
Uma instalação de sucesso retornará a mensagem: "ALL TESTS PASSED." (Todos os testes passaram)
3841

39-
If you are using Windows, the installation package will set your environment variables automatically. In Unix-like systems, you need to set these variables manually as follows. ( ***If your Go version is greater than 1.0, you don't have to set $GOBIN, and it will automatically be related to your $GOROOT/bin, which we will talk about in the next section***)
42+
No Windows você pode executar o arquivo `all.bat`.
43+
44+
45+
Caso esteja utilizando Windows, a instalação do pacote ira configurar automaticamente todas as variaveis do sistema. Em sistema UNIX-Linux, você precisa configura-las manualmente no final do arquivo `.bash_profile`
4046

4147
export GOROOT=$HOME/go
4248
export GOBIN=$GOROOT/bin
4349
export PATH=$PATH:$GOROOT/bin
4450

45-
If you see the following information on your screen, you're all set.
46-
51+
Se você ver a mensagem a seguir, quer dizer que está tudo pronto!
4752
![](images/1.1.mac.png?raw=true)
4853

49-
Figure 1.1 Information after installing from source code
54+
Figura 1.1 Informação após instalação via código fonte
5055

51-
Once you see the usage information of Go, it means you have successfully installed Go on your computer. If it says "no such command", check that your $PATH environment variable contains the installation path of Go.
56+
Caso a instalação tenha sido realizada com sucesso e a mensagem "no such command"(Comando inexistente) permaneça. Verifique se as variaveis do sistema foram configuradas corretamente.
5257

53-
## Using the standard installation packages
58+
## Pacotes de instalação padrão
5459

55-
Go has one-click installation packages for every supported operating system. These packages will install Go in `/usr/local/go` (`c:\Go` in Windows) by default. Of course this can be modified, but you also need to change all the environment variables manually as I've shown above.
60+
Go tem uma instalação simples para todos os sistemas operacionais. Esses pacotes são instalados em: `/usr/local/go` (UNIX-like) e `c:\Go` (Windows) por padrão. Claro que podem ser modificados, mas caso a instalação seja em outro local teremos que reconfigurar as variaveis do sistema, como citado acima.
5661

57-
### How to check if your operating system is 32-bit or 64-bit?
62+
### Como checar se meu sistema operacional é 32-bit ou 64-bit?
5863

59-
Our next step depends on your operating system type, so we have to check it before we download the standard installation packages.
64+
O próxima passo depende do tipo de sistema operacional que você está utilizando. Então temos que checar antes de realizar a instalação dos pacotes.
6065

61-
If you are using Windows, press `Win+R` and then run the command tool. Type the `systeminfo` command and it will show you some useful system information. Find the line that says "system type" -if you see "x64-based PC" that means your operating system is 64-bit, 32-bit otherwise.
66+
Se estiver utilizando Windows, pressione `Win+R` e digite: cmd para abrir o prompt de comando. Execute o comando `systeminfo` e procure a linha referente a "system type" -se você ver "x64-based PC", quer dizer que seu sistema é 64-bit. Caso seja "x32-based PC" é 32-bit".
6267

63-
I strongly recommend downloading the 64-bit package if you are a Mac user, as Go no longer supports pure 32-bit processors on Mac OSX.
68+
É recomendavel utilizar versões 64-bit. Se estiver no MAC, Go não suporta mais versão 32-bit do OSX.
6469

65-
Linux users can type `uname -a` in the terminal to see system information.
66-
A 64-bit operating system will show the following:
70+
No Linux abra um terminal e digite: `uname -a`
71+
Um sistema 64-bit exibirá a mensagem a seguir:
6772

68-
<some description> x86_64 x86_64 x86_64 GNU/Linux
69-
// some machines such as Ubuntu 10.04 will show as following
73+
<alguma descrição> x86_64 x86_64 x86_64 GNU/Linux
74+
// Algumas distribuições exibirão a mensagem a seguir
7075
x86_64 GNU/Linux
7176

72-
32-bit operating systems instead show:
77+
Sistemas 32-bit irão mostrar:
7378

74-
<some description> i686 i686 i386 GNU/Linux
79+
<alguma descrição> i686 i686 i386 GNU/Linux
7580

7681
### Mac
7782

78-
Go to the [download page](https://golang.org/dl/), choose `go1.4.2.darwin-386.pkg` for 32-bit systems and `go1.4.2.darwin-amd64.pkg` for 64-bit systems. Going all the way to the end by clicking "next", `~/go/bin` will be added to your system's $PATH after you finish the installation. Now open the terminal and type `go`. You should see the same output shown in igure 1.1.
83+
Vá para a [página de download](https://golang.org/dl/), escolha `go1.4.2.darwin-386.pkg` para sistemas 32-bit ou `go1.4.2.darwin-amd64.pkg` para sistemas 64-bit. Execute o instalador, e o próprio sistema se encarregará de criar as variaveis do sistema. Digite `go` no terminal e a saida será a mesma da figura 1.1.
84+
7985

8086
### Linux
8187

82-
Go to the [download page](https://golang.org/dl/), choose `go1.4.2.linux-386.tar.gz` for 32-bit systems and `go1.4.2.linux-amd64.tar.gz` for 64-bit systems. Suppose you want to install Go in the `$GO_INSTALL_DIR` path. Uncompress the `tar.gz` to your chosen path using the command `tar zxvf go1.4.2.linux-amd64.tar.gz -C $GO_INSTALL_DIR`. Then set your $PATH with the following: `export PATH=$PATH:$GO_INSTALL_DIR/go/bin`. Now just open the terminal and type `go`. You should now see the same output displayed in figure 1.1.
88+
Vá para a [página de download](https://golang.org/dl/), escolha `go1.4.2.linux-386.tar.gz` para sistemas 32-bit ou `go1.4.2.linux-amd64.tar.gz` para sistemas 64-bit. Caso a instalação seja padrão, descompacte o arquivo `.tar.gz` em "/usr/local", configure o arquivo .bash_profile como apresentado anteriormente, abra um terminal digite `go` no terminal e a saida será a mesma da figura 1.1.
89+
8390

8491
### Windows
8592

86-
Go to the [download page](https://golang.org/dl/), choose `go1.4.2.windows-386.msi` for 32-bit systems and `go1.4.2.windows-amd64.msi` for 64-bit systems. Going all the way to the end by clicking "next", `c:/go/bin` will be added to `path`. Now just open a command line window and type `go`. You should now see the same output displayed in figure 1.1.
93+
Vá para a [página de download](https://golang.org/dl/), escolha `go1.4.2.windows-386.msi` para sistemas 32-bit ou `go1.4.2.windows-amd64.msi` para sistemas 64-bit. Execute o instalador, ele irá instalar na masta `c:\go`, as variaveis do sistema serão configuradas automaticamente. Abra um prompt de comando e digite: `go`, a saida será a mesma da figura 1.1.
8794

88-
## Use third-party tools
95+
## Pacotes de terceiros
8996

90-
### GVM
97+
### GVM (Go Version Manager)
9198

92-
GVM is a Go multi-version control tool developed by a third-party, like rvm for ruby. It's quite easy to use. Install gvm by typing the following commands in your terminal:
99+
GVM é um gerenciador de versões para Go, assim como o RVM para Ruby. É muito simples utilizar esse método. Para instalar o GVM execute o comando abaixo no terminal:
93100

94101
bash < <(curl -s -S -L https://raw.github.com/moovweb/gvm/master/binscripts/gvm-installer)
95102

96-
Then we install Go using the following commands:
103+
Quando o GVM estiver instalado, instale a versão do Go desejada e configure-a para se tornar a padrão. O GVM se encarrega automaticamente de escolher a melhor arquitetura do sistema operacional para você.
97104

98105
gvm install go1.4.2
99106
gvm use go1.4.2
100107

101-
After the process has finished, you're all set.
108+
Após finalizar os processos, você já poderá utilizar o Go.
102109

103110
### apt-get
104111

105-
Ubuntu is the most popular desktop release version of Linux. It uses `apt-get` to manage packages. We can install Go using the following commands.
112+
Ubuntu é a distribuição Linux mais popular para Desktop doméstico. Ele usa o `apt-get` como gerenciador de pacotes. Podemos instalar utilizando os seguintes comando abaixo no terminal:
106113

107114
sudo add-apt-repository ppa:gophers/go
108115
sudo apt-get update
109116
sudo apt-get install golang-stable
110117

111118
### Homebrew
112119

113-
Homebrew is a software management tool commonly used in Mac to manage packages. Just type the following commands to install Go.
120+
Homebrew é o gerenciador de pacotes para MAC, para instalar o Go rode o comando abaixo no terminal:
114121

115122
brew install go
116123

117124
## Links
118125

119-
- [Directory](preface.md)
120-
- Previous section: [Go environment configuration](01.0.md)
121-
- Next section: [$GOPATH and workspace](01.2.md)
126+
- [Sumário](preface.md)
127+
- Sessão anterior: [Configuração do ambiente de desenvolvimento](01.0.md)
128+
- Próxima sessão: [$GOPATH e Workspace](01.2.md)

pt-br/01.2.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#1.2 $GOPATH and workspace
1+
#1.2 $GOPATH e Workspace
22

33
## $GOPATH
44

pt-br/preface.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
- 1.[Go environment configuration](01.0.md)
2-
- 1.1. [Installation](01.1.md)
3-
- 1.2. [$GOPATH and workspace](01.2.md)
4-
- 1.3. [Go commands](01.3.md)
5-
- 1.4. [Go development tools](01.4.md)
6-
- 1.5. [Summary](01.5.md)
7-
- 2.[Go basic knowledge](02.0.md)
8-
- 2.1. ["Hello, Go"](02.1.md)
1+
- 1.[1 Configuração do ambiente de desenvolvimento](01.0.md)
2+
- 1.1. [Instalação](01.1.md)
3+
- 1.2. [$GOPATH e Workspace](01.2.md)
4+
- 1.3. [Comandos em Go](01.3.md)
5+
- 1.4. [Ferramentas de desenvolvimento](01.4.md)
6+
- 1.5. [Sumário](01.5.md)
7+
- 2.[Go, conhecimento básico](02.0.md)
8+
- 2.1. ["Olá, Go"](02.1.md)
99
- 2.2. [Go foundation](02.2.md)
1010
- 2.3. [Control statements and functions](02.3.md)
1111
- 2.4. [struct](02.4.md)
12-
- 2.5. [Object-oriented](02.5.md)
12+
- 2.5. [Orientação a Objetos](02.5.md)
1313
- 2.6. [interface](02.6.md)
1414
- 2.7. [Concurrency](02.7.md)
15-
- 2.8. [Summary](02.8.md)
15+
- 2.8. [Sumário](02.8.md)
1616
- 3.[Web foundation](03.0.md)
1717
- 3.1. [Web working principles](03.1.md)
1818
- 3.2. [Build a simple web server](03.2.md)
@@ -93,4 +93,4 @@
9393
- 14.5. [Multi-language support](14.5.md)
9494
- 14.6. [pprof](14.6.md)
9595
- 14.7. [Summary](14.7.md)
96-
- Appendix A [References](ref.md)
96+
- Appendix A [References](ref.md)

0 commit comments

Comments
 (0)