ModuleSetLocalModules is a convenience function that returns the local Modules from a ModuleSet.
(moduleSet ModuleSet)
| 120 | // ModuleSetLocalModules is a convenience function that returns the local Modules |
| 121 | // from a ModuleSet. |
| 122 | func ModuleSetLocalModules(moduleSet ModuleSet) []Module { |
| 123 | return xslices.Filter( |
| 124 | moduleSet.Modules(), |
| 125 | func(module Module) bool { return module.IsLocal() }, |
| 126 | ) |
| 127 | } |
| 128 | |
| 129 | // ModuleSetRemoteModules is a convenience function that returns the remote Modules |
| 130 | // from a ModuleSet. |
no test coverage detected
searching dependent graphs…