IT 이모저모

govendor

exien 2018. 2. 21. 09:07
go get -u github.com/kardianos/govendor

# Setup your project.
cd "my project in GOPATH"
govendor init

# Add existing GOPATH files to vendor.
govendor add +external

# View your work.
govendor list

# Look at what is using a package
govendor list -v fmt

# Specify a specific version or revision to fetch
govendor fetch golang.org/x/net/context@a4bbce9fcae005b22ae5443f6af064d80a6f5a55
govendor fetch golang.org/x/net/context@v1   # Get latest v1.*.* tag or branch.
govendor fetch golang.org/x/net/context@=v1  # Get the tag or branch named "v1".

# Update a package to latest, given any prior version constraint
govendor fetch golang.org/x/net/context

# Format your repository only
govendor fmt +local

# Build everything in your repository only
govendor install +local

# Test your repository only
govendor test +local


'IT 이모저모' 카테고리의 다른 글

로그 보기  (0) 2018.02.21
git 에서 가져오기  (0) 2018.02.21
Go 서비스  (0) 2018.02.21
Go언어 잘 사용하는 방법  (0) 2018.02.21
컴퓨터 사양 보는 법 CPU-Z 포터블(설치 필요 없음)  (0) 2018.02.20