기본 콘텐츠로 건너뛰기

라벨이 Golang인 게시물 표시

Golang 설치 및 시작하기 on Mac

  Golang 시작하기  1. Setup 1.1 최신버전 다운로드 및 설치 https://golang.org/doc/install  에서 macos 용 다운로드 Finder에서 go1.13.4.darwin-amd64.pkg 설치 설치위치 /usr/local/go --> 기본인데 /usr/local/Cellar/go/1.13.4/libexec 이렇게 설치되는 경우도 있음 1.2 환경설정 > vi ~/.bash_profile 열어서 export GOOS=darwin export GOARCH=amd64 export GOROOT=/usr/local/go export GOPATH=$HOME/gowork export GOBIN=$GOPATH/bin export PATH=$PATH:$GOROOT/bin:$GOBIN :wq! > source ~/.bash_profile Arch 및 OS 참조 :  https://stuff.mit.edu/afs/athena/software/ggo_v1.7/doc/install-source.html $GOOS $GOARCH $GOOS $GOARCH android arm linux ppc64 darwin 386 linux ppc64le darwin amd64 linux mips64 darwin arm linux mips64le darwin arm64 netbsd 386 dragonfly amd64 netbsd amd64 freebsd 386 netbsd arm freebsd amd64 openbsd 386 freebsd arm openbsd amd64 linux 386 openbsd arm linux amd64 plan9 386 linux arm plan9 amd64 linux arm64 solaris amd64 windows amd64 windows 386 1.3 Workspace 설정 및 IDE 1.3.1 디렉토리 만들기 > mkdir ~/gowork (export GOPATH=$HOM...