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 |
29 | 30 |
Tags
- 시뮬레이션
- boj
- JavaScript
- gpdb
- Algorithm
- spring boot
- Back tracking
- Linked list
- SQL
- 코딩테스트
- django
- Priority Queue
- Data Structure
- Trie
- 알고리즘
- Vue.js
- CSV
- hash table
- 알고리듬
- DFS
- SWEA
- programmers
- aws
- GitHub
- Bruth Force
- 모의SW역량테스트
- 코테
- BFS
- 구현
- Python
Archives
- Today
- Total
hotamul의 개발 이야기
[Golang] How to setup Go in mac 본문
Installation
❯ brew intstall go
When installed, run go version
to see the installed version of Go.
❯ go version
go version go1.17.6 darwin/arm64
Setup worksapce
The GOPATH
environment variable specifies the location of your workspace.
It defaults to a directory named go
inside your home directory.
❯ go env GOPATH
$HOME/go
add GOPATH
to your shell/bash/zsh initialization file .bash_profile
, .bashrc
or .zshrc
.
export GOPATH=$HOME/myproject/goworkspace
And add GOPATH/bin
directory to your PATH
environment to run Go programs anywhere.
export PATH=$PATH:$(go env GOPATH)/bin
'Dev. > Golang' 카테고리의 다른 글
[Golang] Concurrency is not parallelism (Goroutines, Channels, ...) (0) | 2022.11.21 |
---|
Comments