https://jusths.tistory.com/m/108
package (subdirectory) 마다 go mod init [모듈명] 으로 go.mod 파일 생성하고
GOPATH 상위에도 go mod init [프로젝트명] 식으로 go.mod 생성
이후 go get 혹은 go build -o [파일명] 시 go.sum 이 생성되고 패키지 다운받음.
go mod tidy 는 사용하는 의존성만 남김.
(불필요 의존성 제거)
'가지가지' 카테고리의 다른 글
로그 시간별로 쪼개기 (0) | 2020.02.06 |
---|---|
git "tag name > branch name > commit revision" 으로 구해오기 (0) | 2019.12.17 |
ulimit 설정 (0) | 2019.10.31 |
Nginx 1.16.1 수동 컴파일 설치 on ubuntu 18.04 (0) | 2019.10.28 |
crontab (0) | 2019.10.15 |
[centos] sudo 권한 부여. centos 7 (0) | 2019.08.21 |
[centos] yum 특정 버전 설치 (0) | 2019.07.26 |
[streaming] 동영상 스트리밍 (nginx-rtmp-module, on windows) (0) | 2019.03.25 |