将html文件复制到供应商文件夹

Use Case: I have Proj A and Proj B. Proj B depends on Proj A. I am using Go Modules for dependency management and go mod vendor for generating the vendor folder. Proj A is inside the vendor folder of Proj B.

Issue: In Proj A, I have an HTML file. The HTML file is not copied to the vendor folder.

How can I force to copy the HTML file to the vendor folder so that I can use in Proj B?

A workaround for this issue is to have a dummy go file and go function in the html folder, and call the dummy function somewhere in the code. This makes the go mod vendor to copy the folder to the vendor folder. Not a cleaner way, until Go mod adds something like non-go=true option in deps.