This is a created article in which the information may have evolved or changed.
Goal:
1. The Golang official has moved the URL of the package following its own project Git code uploaded to the project source.
2. Make or modify the differentiated fork package to follow your own project Git code is uploaded to the project source.
Solution:
Scenario 1. Third-party Package management
http://tleyden.github.io/blog/2016/02/08/adding-vendoring-to-a-go-project/
Scenario 2: Manual Process
A. The Startup folder "/vendor/src" in the project root directory
B. Through the Git-subtree drop-down package to the previous step directory, the Red envelope part is the package address to be installed
git subtree add--prefix vendor/src/github.com/go-sql-driver/mysql https://github.com/go-sql-driver/ MySQL. Git master--squash
C. When a new package is required, you can change the add parameter to pull execution once
D. Add vendor folder and push to Git source
Complete