(name string)
| 254 | } |
| 255 | |
| 256 | func (p pluginRegistry) Stat(name string) (fs.FileInfo, error) { |
| 257 | |
| 258 | for _, p := range registry { |
| 259 | |
| 260 | if embedPath, ok := p.files.filePaths[name]; ok { |
| 261 | return fs.Stat(p.files.fileSystem, embedPath) |
| 262 | } |
| 263 | } |
| 264 | |
| 265 | return nil, fs.ErrNotExist |
| 266 | |
| 267 | } |
| 268 | |
| 269 | func (p *Plugin) Requires(modname string, modversion string) { |
| 270 | // modname can only contain alphanumeric or underscores. |
no outgoing calls