ParentFull thready0ssar1an·dep will ignore the library's vendor directory entirely. You don't need to do any of that work yourself. dep will do it for you. https://github.com/golang/depView on HN