SetDefaultFS replaces the global filesystem implementation used by internal packages. The provided fs must implement the vfs.FS interface. If fs is nil, the default OS filesystem is restored. Call this before Build or Execute to take effect.
(fs vfs.FS)
| 11 | // |
| 12 | // Call this before Build or Execute to take effect. |
| 13 | func SetDefaultFS(fs vfs.FS) { |
| 14 | if fs == nil { |
| 15 | fs = vfs.OsFs{} |
| 16 | } |
| 17 | vfs.DefaultFS = fs |
| 18 | } |
no outgoing calls