Skip to content

kilfu0701/go-vendor-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

go-vendor-example

An example that using "govendor" into your project.

How to use

Step 1: Clone repo and setup GOPATH.

git clone https://github.com/kilfu0701/go-vendor-example.git
cd go-vendor-example
export GOPATH=`pwd`
export PATH=$GOPATH/bin:$PATH

Setp 2: Install govender

go get -u github.com/kardianos/govendor
rm -rf src/github.com src/golang.org     # after install govender, remove "src/github.com" & "src/golang.org"

Step 3: Download vendor packages

cd src/app
govendor sync

Step 4: Run application, and check localhost:8081

cd $GOPATH
go run src/main.go

Support version

  • Go 1.5 (run with GO15VENDOREXPERIMENT=1 go run src/main.go)
  • Go 1.6 above

Contributors

kilfu0701 (kilfu0701@gmail.com)

License

MIT

About

An example that using "govendor" into your project.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages