install1 Go - compile 과 install 참조: https://go.dev/doc/tutorial/compile-install - 개요 이번에는 go 의 새로운 명령어 2 가지를 배워보도록 한다. go run 명령어는 프로그램을 자주 변경할 때 프로그램을 compile 하고 실행 시키는데 유용한 단축 명령어(shortcut)지만 실행 가능한 binary 를 생성하지는 않는다. go build 명령어는 package 를 compile 하지만 결과물을 설치하지는 않는다. go install 은 package 를 compile 하고 설치한다. - build hello directory 에서 go build 명령어를 실행하여 코드를 compile 하고 실행가능한 파일을 생성한다. go build ls go.mod hello hello.go ./hell.. 2021. 11. 28. 이전 1 다음