MCPcopy Index your code
hub / github.com/WendellCraft/ModpackDebuggerKit / flattenGroup

Function flattenGroup

debug.go:267–279  ·  view source on GitHub ↗
(primaryMods []string, groupMap map[string][]string)

Source from the content-addressed store, hash-verified

265}
266
267func flattenGroup(primaryMods []string, groupMap map[string][]string) []string {
268 modSet := make(map[string]bool)
269 for _, p := range primaryMods {
270 for _, m := range groupMap[p] {
271 modSet[m] = true
272 }
273 }
274 var list []string
275 for m := range modSet {
276 list = append(list, m)
277 }
278 return list
279}
280
281func (a *App) testGroup(mods []string) bool {
282 a.mu.Lock()

Callers 1

binarySearchMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected