// GroupLogsByStatus groups logs applied/not applied
GroupLogsByStatus groups logs applied/not applied
// GroupLogsByStatus groups logs applied / not applied
func GroupLogsByStatus(list []Log) (l map[uint]LogsList) {
	l = make(map[uint]LogsList, 2)
	l[StatusNotApplied] = make(LogsList)
	l[StatusApplied] = make(LogsList)
	for _, i := range list {
		if i.Status == StatusApplied {
			l[StatusApplied][i.ID] = i
		} else {
			l[StatusNotApplied][i.ID] = i
		}
	}
	return l
}
func GroupLogsByStatus ( list [ ] Log ) ( l map [ uint ] LogsList ) { l = make ( map [ uint ] LogsList , 2 ) l [ StatusNotApplied ] = make ( LogsList ) l [ StatusApplied ] = make ( LogsList ) for _ , i := range list { if i . Status == StatusApplied { l [ StatusApplied ] [ i . ID ] = i } else { l [ StatusNotApplied ] [ i . ID ] = i } } return l }
GroupLogsByStatus groups logs applied/not applied
GroupLogsByStatus groups logs applied / not applied