shurcooL / vfsgen

Takes an input http.FileSystem (likely at go generate time) and generates Go code that statically implements it.
MIT License
981 stars 83 forks source link

Support Go modules. #59

Closed Its-Alex closed 6 years ago

Its-Alex commented 6 years ago

Hi, I want to know if vsfgen work with go module?

If no are you going to patch it ?

dmitshur commented 6 years ago

vfsgen itself supports modules.

./cmd/vfsgendev, a convenience tool for using vfsgen in a specific way, currently doesn't support modules because it looks for import paths only within GOPATH and GOROOT. However, there is an open PR #50 that adds support for modules.