diff --git a/README.md b/README.md index f622157..c61f697 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,10 @@ Best way of learning is doing. Inside this repository, you will find thousands of Go examples, exercises and quizzes. I initially created this repository for my **[Go: Bootcamp Course](https://www.udemy.com/course/learn-go-the-complete-bootcamp-course-golang/?referralCode=5CE6EB34E2B1EF4A7D37)**. Later on, I added a lot of exercises, and I wanted every programmer who are not yet enrolled in the course to learn for free as well. So here it is. Enjoy. +Available in the following languages +* **[English](https://github.com/inancgumus/learngo)** +* **[Spanish](translation/spanish)** + ## ❤️ Help other fellow developers Sharing is free but caring is priceless. [So, now please click here](https://twitter.com/intent/tweet?text=I%27m%20learning%20%23golang%20with%201000%2B%20hand-crafted%20examples%2C%20exercises%2C%20and%20quizzes.&url=https://github.com/inancgumus/learngo&via=inancgumus) and share this repository on Twitter. diff --git a/translation/README.md b/translation/README.md new file mode 100644 index 0000000..81f9db4 --- /dev/null +++ b/translation/README.md @@ -0,0 +1,4 @@ +# This Repo Is Available In The Following Languages + +* **[English](https://github.com/inancgumus/learngo)** +* **[Spanish](spanish/README.md)** \ No newline at end of file diff --git a/translation/spanish/01-empecemos/README.md b/translation/spanish/01-empecemos/README.md new file mode 100644 index 0000000..2876d3f --- /dev/null +++ b/translation/spanish/01-empecemos/README.md @@ -0,0 +1,7 @@ +# Guias De Instalación Para Go + +Porfavor seleciona tu sistema operativo: + +* [OS X](instalacion-osx.md) +* [Windows](instalacion-windows.md) +* [Linux (Ubuntu)](instalacion-ubuntu.md) \ No newline at end of file diff --git a/translation/spanish/01-empecemos/instalacion-osx.md b/translation/spanish/01-empecemos/instalacion-osx.md new file mode 100644 index 0000000..3e4e1b3 --- /dev/null +++ b/translation/spanish/01-empecemos/instalacion-osx.md @@ -0,0 +1,62 @@ +# Instalación OSX + +## NOTA + +Si tienes [homebrew](https://brew.sh) instalado, puedes instalar Go facilmente de la siguiente forma: + +```bash +# si no tienes git instalado instalalo asi +brew install git + +# despues instala go +brew install go + +# añade la ruta GOBIN a tu ruta en ~/.bash_profile +export PATH=${HOME}/go/bin:$PATH +``` + +## 1. Instala El Editor Visual Studio Code + +1. Instalalo pero no lo abras todavia +2. Ves a [https://code.visualstudio.com](https://code.visualstudio.com) +3. Selecciona la version OS X (Mac) y empieza la descarga +4. Descomprime los archivos descargados y muevelos a la carpeta `~/Applications` + +## 2. Instala Git + +1. Descarga y ejecuta el instalador. Ves a: [https://git-scm.com/downloads](https://git-scm.com/downloads) +2. Selecciona VSCode como editor por defecto + +## 3. Instala Go + +1. Ves a [https://golang.org/dl](https://golang.go/dl) +2. Elige la versión OS X (Mac) +3. Ejecuta el instalador + +## 4. Configura Visual Studio Code + +1. Abre VS Code; haz click en la pestaña de extensiones situada a la izquierda, busca "go" e instalalo +2. Cierra VS Code por completo y ábrelo de nuevo + +3. Ve al menu Ver: selecciona **Paleta de Comandos** + 1. O simplemente presiona: `ctrl+shift+p` + 2. Escribe: `go install` + 3. Elige: _"Go: Install/Update Tools"_ + 4. Marca todas las casillas + +4. Una vez acabado abre la **Paleta de Comandos** de nuevo + 1. Escribe: `shell` + 2. Elige: "Install 'code' command in PATH" + 1. **NOTE:** No tienes que hacer esto si estas en Windows. + +## Eso es todo! Disfrutad! 🤩 + +
+ +> Para mas tutoriales: [https://blog.learngoprogramming.com](https://blog.learngoprogramming.com) +> +> Copyright © 2021 Inanc Gumus +> +> Learn Go Programming Course +> +> [Click aqui para leer la licencia.](https://creativecommons.org/licenses/by-nc-sa/4.0/) \ No newline at end of file diff --git a/translation/spanish/01-empecemos/instalacion-ubuntu.md b/translation/spanish/01-empecemos/instalacion-ubuntu.md new file mode 100644 index 0000000..38fc7a6 --- /dev/null +++ b/translation/spanish/01-empecemos/instalacion-ubuntu.md @@ -0,0 +1,118 @@ +# Instalación Linux (Ubuntu) + +Si quieres usar snap puedes instalar Go facilmente con este comando: + +```bash +sudo snap install go --classic +``` + +Sino, puedes seguir los siguientes pasos + +## 1. Actualiza los paquetes locales + +```bash +sudo apt-get update +``` + +## 2. Instala Git + +```bash +sudo apt-get install git +``` + +## 3. Instala Go + +Hay dos formas: + +1. Desde la pagina web: selecciona linux y empezara la descarga. + + ```bash + firefox https://golang.org/dl + ``` + +2. Si estas usando snap: avanza hasta el paso 5. + + ```bash + sudo snap install go --classic + ``` + +## 4. Copia Go en el directorio apropiado + +1. Encuentra el nombre del archivo descargado + +2. Usa el nombre de ese archivo para descomprimirlo + + ```bash + gofile="BORRA_ESTO_Y_ESCRIBE_EL_NOMBRE_DEL_ARCHIVO_DESCARGADO (sin la extension)" + tar -C /usr/local -xzf ~/Downloads/$gofile + ``` + +## 5. Añade los executables de Go a tu PATH + +1. Añade el directorio `go/bin` al `$PATH` para poder ejecutar los comandos principales de Go. + + ```bash + echo 'export PATH=$PATH:/usr/local/go/bin' >> ~/.profile + ``` + +2. Añade el directorio `$HOME/go/bin` a tu `$PATH` + + ```bash + echo 'export PATH=$PATH:$HOME/go/bin' >> ~/.profile + ``` + +## Instala Las Herramientas de Go + +* Estas son utiles herramientas que ayudan a facilitar el desarrollo (como goimports) + +* `go get` no puede ser usado sin haber instalado un programa de control de versiones como Git. + +* Esto creara un directorio llamado `~/go` donde se descargaran las herramientas + +* Este directorio tambien es el lugar donde deberias poner tu codigo. (Si no vas a usar los modulos de Go) + + ```bash + go get -v -u golang.org/x/tools/... + ``` + +## Instala El Editor Visual Studio Code + +Nota: Puedes usar otro editor de codigo si quieres. Igualmente, el curso usa Visual Studio Code (VS Code). + +1. Abre la aplicación "Ubuntu Software" +2. Busca "VSCode" y clicka en el boton de Instalar + +## PASO OPCIONAL + +1. Crea un archivo llamado `hola.go` en un nuevo directorio alejado de `$GOPATH` + + ```bash + cat <