fix(guide): simplify directory structure

This commit is contained in:
Mrugesh Mohapatra
2018-10-16 21:26:13 +05:30
parent f989c28c52
commit da0df12ab7
35752 changed files with 0 additions and 317652 deletions

View File

@ -0,0 +1,22 @@
---
title: Installing Go in Arch Linux using pacman
---
### Installing Go in Arch Linux using pacman
Using Arch Linux Package Manager (pacman) is the easiest way to install Go. Based on the Arch Linux philosophy of providing new software versions very fast, you will get a very current version of go.
Before you can install the go package, you have to bring the system up to date.
```sh
$ sudo pacman -Syu
$ sudo pacman -S go
```
#### Check installation and version of go
To check if go was successfully installed, use:
```sh
$ go version
> go version go2.11.1 linux/amd64
```
This will print to the console the version of go, while at the same time making sure the installation went smoothly.

View File

@ -0,0 +1,24 @@
---
title: Installing Go
---
# Installing Go
## Installing Go in Ubuntu
* [Installing Go using apt-get](https://guide.freecodecamp.org/go/installing-go/ubuntu-apt-get). This is the easiest method for installing go in ubuntu.
* [Installing Go using tarball](https://guide.freecodecamp.org/go/installing-go/ubuntu-tarball). Use this method if you wish to install the latest stable version of go.
## Installing Go in Mac OS X
* [Installing Go using Package Installer](https://guide.freecodecamp.org/go/installing-go/mac-package-installer). Easiest method to install latest stable version of go.
* [Installing Go using tarball](https://guide.freecodecamp.org/go/installing-go/mac-tarball). For those that wish to use the terminal.
## Installing Go in Windows
* [Installing Go using the MSI Installer](https://guide.freecodecamp.org/go/installing-go/windows-installer)
## Installing Go from source
* To install Go from source reffer to the <a href="https://golang.org/doc/install/source" rel="nofollow" target="_blank">installing from source documentation<a/>
Reference: <a href="https://golang.org/doc/install#install" rel="nofollow" target="_blank">golang install documentation</a>

View File

@ -0,0 +1,17 @@
---
title: Installing Go in Mac OS X using Package Installer
---
### Installing Go in Mac OS X using Package Installer
From the [golang's download page](https://golang.org/dl/), get the Mac package installer (ending in .pkg) and run it.
![screenshot of golang's download page as of this writting, highliting link](https://raw.githubusercontent.com/AlexandroPerez/resources/master/img/mac_package_installer.jpg "Mac package installer link")
#### Check installation and version of go
To check if go was successfully installed, open your terminal and use:
```sh
$ go version
```
This should print to the console the version of go, while at the same time making sure the installation went smoothly.

View File

@ -0,0 +1,31 @@
---
title: Installing Go in Mac OS X using a tarball
---
### Installing Go in Mac OS X using a tarball
#### Link to tarball
You can get the link to the Mac OS tarball archive from the Latest Stable section of the [golang download page](https://golang.org/dl/).
![screenshot of golang's download page as of this writting, highliting link](https://raw.githubusercontent.com/AlexandroPerez/resources/master/img/mac_tarball.jpg "Mac tarball link")
#### Installation Process
> In this installation process we'll use the latest stable version as of this writing (go 1.9.1). For a newer or older version simply replace the link in the first step. Check the [golang download page](https://golang.org/dl/) to see what versions are currently available.
##### Installing Go 1.9.1
```
$ curl -O https://storage.googleapis.com/golang/go1.9.1.darwin-amd64.tar.gz
$ sudo tar -C /usr/local -xzf go1.9.1.darwin-amd64.tar.gz
$ export PATH=$PATH:/usr/local/go/bin
```
#### Check installation and version of go
To check if go was successfully installed, use:
```sh
$ go version
```
This should print to the console the version of go, while at the same time making sure the installation went smoothly.

View File

@ -0,0 +1,23 @@
---
title: Installing Go in Ubuntu using apt-get
---
### Installing Go in Ubuntu using apt-get
Using Ubuntu's Source Package Manager (apt-get) is the easiest way to install Go. You won't get the latest stable version, but for the purpose of learning this should be enough.
>As of this writing, Ubuntu Xenial's version of go is 1.6.1, while the latest
stable version is 1.9.1
```sh
$ sudo apt-get update
$ sudo apt-get install golang-go
```
#### Check installation and version of go
To check if go was successfully installed, use:
```sh
$ go version
> go version go1.9.1 linux/amd64
```
This will print to the console the version of go, while at the same time making sure the installation went smoothly.

View File

@ -0,0 +1,59 @@
---
title: Installing Go in Ubuntu using a tarball
---
### Installing Go in Ubuntu using a tarball
>This is the recommended way to install go if you wish to get the latest stable version available from the golang website.
#### Check your system Architecture
Before proceeding make sure you know if your system is 32 or 64 bit. If you don't know, run the following command to find out:
```sh
$ lscpu | grep Architecture
```
If you see ``` Architecture: x86_64``` your system is 64bit, otherwise if you get ```Architecture: i686```, then your system is 32bit. Now that you know your system architecture, let's proceed.
#### Picking the right tarball
From the [golang download page](https://golang.org/dl/), you'll need to get the link to the right tarball file (.tar.gz) for your system.
If your system is 64bit, copy the link to the .tar.gz file for Linux systems with x86_64 architecture. For example, the latest stable version for 64bit systems as of this writing is ```go1.9.1.linux-amd64.tar.gz```
![screenshot of golang's download page as of this writting, highliting link](https://raw.githubusercontent.com/AlexandroPerez/resources/master/img/ubuntux64.jpg "x64 tarball link")
If your system is 32bit, copy the link to the .tar.gz file for Linux systems with x86 architecture. As of this writing the latest file is ```go1.9.1.linux-386.tar.gz```
![screenshot of golang's download page as of this writting, highliting link](https://raw.githubusercontent.com/AlexandroPerez/resources/master/img/ubuntux86.jpg "x86 tarball link")
After copying the link, simply replace the link in the Installation process found below with the link you got from the download page.
#### Installation Process
> In this installation process we'll use the links to the go 1.9.1 tarballs as an example. For a newer or older version simply replace the link in the first step. Check the [golang download page](https://golang.org/dl/) to see what versions are currently available.
##### Go 1.9.1 for 64bit systems:
```
$ wget https://storage.googleapis.com/golang/go1.9.1.linux-amd64.tar.gz
$ sudo tar -C /usr/local -xzf go1.9.1.linux-amd64.tar.gz
$ export PATH=$PATH:/usr/local/go/bin
```
##### Go 1.9.1 for 32bit systems:
```
$ wget https://storage.googleapis.com/golang/go1.9.1.linux-386.tar.gz
$ sudo tar -C /usr/local -xzf go1.9.1.linux-386.tar.gz
$ export PATH=$PATH:/usr/local/go/bin
```
#### Check installation and version of go
To check if go was successfully installed, use:
```sh
$ go version
> go version go1.9.1 linux/amd64
```
This will print to the console the version of go, while at the same time making sure the installation went smoothly.

View File

@ -0,0 +1,22 @@
---
title: Installing Go in Windows using the MSI Installer
---
### Installing Go in Windows using the MSI Installer
From the [golang's download page](https://golang.org/dl/), get the Windows MSI installer and run it. You'll have to pick between the 64bit and 32bit versions. If you don't know what architecture your Windows version is running, just do a quick Google search to find out.
>Most current versions of Windows are 64bit, so you should be ok getting the 64bit version in the featured downloads section, but if your computer is quite old, the 32bit version should be the safest bet.
##### 64-bit Windodows Installer
![screenshot of golang's download page as of this writting, highliting link](https://raw.githubusercontent.com/AlexandroPerez/resources/master/img/win_installerx64.jpg "x64 Windows msi installer link")
##### 32-bit Windodows Installer
![screenshot of golang's download page as of this writting, highliting link](https://raw.githubusercontent.com/AlexandroPerez/resources/master/img/win_installerx86.jpg "x86 Windows msi installer link")
#### Check installation and version of go
To check if go was successfully installed, open your command prompt and use:
```
> go version
```
This should print to the console the version of go, while at the same time making sure the installation went smoothly.