Golang command

From 탱이의 잡동사니
Revision as of 10:26, 10 October 2018 by Pchero (talk | contribs) (Created page with "== Overview == Golang 명령어 내용 정리 == get == <pre> usage: go get [-d] [-f] [-t] [-u] [-v] [-fix] [-insecure] [build flags] [packages] </pre> Get downloads the pack...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Overview

Golang 명령어 내용 정리

get

usage: go get [-d] [-f] [-t] [-u] [-v] [-fix] [-insecure] [build flags] [packages]

Get downloads the packages named by the import paths, along with their dependencies. It then installs the named packages, like 'go install'.

-d

Package 다운로드 만을 한다. 패키지 설치는 하지 않는다. The -d flag instructs get to stop after downloading the packages; that is, it instructs get not to install the packages.

-f

The -f flag, valid only when -u is set, forces get -u not to verify that each package has been checked out from the source control repository implied by its import path.This can be useful if the source is a local fork of the original.

-u

The -u flag instructs get to use the network to update the named packages and their dependencies. By default, get uses the network to check out missing packages but does not use it to look for updates to existing packages.

-v

Verbose. 상세 작업 진행 내역을 보여준다. The -v flag enables verbose progress and debug output.