Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- 리뷰
- write
- Golang
- API
- FOR
- range
- windows
- go
- GO 언어
- mutex
- 영화
- tcp
- c++
- go언어
- package
- Callback
- File
- Linux
- install
- channel
- bitcoin
- JavaScript
- 책
- window
- C
- Python
- json
- Close
- Sync
- http
Archives
- Today
- Total
Code Habit
Golang 설 치 본문
Go 언어는 다음 웹사이트에서 운영체제별로 다운받아 설치할 수 있다.
Downloads - The Go Programming Language
Downloads After downloading a binary release suitable for your system, please follow the installation instructions. If you are building from source, follow the source installation instructions. See the release history for more information about Go releases
golang.org
리눅스
리눅스에서 설치하는 방법은 바이너리를 직접 다운 받아 설치하는 방법과 패키지로 설치하는 방법이 있다.
wget명령으로 압축파일을 다운받고 /usr/local/ 폴더에 압축을 풀어준다.
wget https://dl.google.com/go/파일이름
sudo tar -C /usr/local -xzf 파일이름
go 명령을 사용할 수 있도록 .bashrc 파일에 PATH 설정을 추가한다.
echo "export PATH=$PATH:/usr/local/go/bin" >> .bashrc
source .bashrc
다음은 패키지로 설치하는 방법이다.
// 우분투
sudo apt-get update
sudo apt-get install golang
// CentOS
sudo yum install golang
Windows
Windows는 msi 설치 파일을 받아서 설치한다.
설치 파일이 아닌 zip 파일은 C:\Go폴더에 압축을 해제한다. 그리고 환경 변수의 Path에 C:\Go\bin 폴더를 추가한다.