How to create assembly for vendor (Third party lib) in golang

The new version to do it is using modules in Go 10.11

Then you only reference the third party libraries in your code and it is stored and build in another folder.