I want to cleanup my vendor folder in my golang project. What is the best way to go about this?
After good amount of looking around, I found that there is an easy one-line command to do this:
govendor remove +unused
What about using this commands?
go mod tidy --> removes dependencies from go.mod go mod vendor --> removes libraries from vendor
This will remove all unused libraries
Copyright © 2021 Jogjafile Inc.
After good amount of looking around, I found that there is an easy one-line command to do this:
govendor remove +unused