cm15/examples/auditail/main.go
func extractUnique(oldEntries, newEntries []*cm15.AuditEntry) []*cm15.AuditEntry {
	var uniqueEntries = make([]*cm15.AuditEntry, 0)
	var oldHrefs = make([]string, len(oldEntries))
	for i, e := range oldEntries {
		oldHrefs[i] = getHref(e)
	}
	for _, newEntry := range newEntries {
		if !stringInSlice(getHref(newEntry), oldHrefs) {
			uniqueEntries = append(uniqueEntries, newEntry)
		}
	}
	return uniqueEntries
}
func extractUnique(oldEntries, newEntries []*cm15.AuditEntry) []*cm15.AuditEntry {
	var uniqueEntries = make([]*cm15.AuditEntry, 0)
	var oldHrefs = make([]string, len(oldEntries))
	for i, e := range oldEntries {
		oldHrefs[i] = getHref(e)
	}
	for _, newEntry := range newEntries {
		if !stringInSlice(getHref(newEntry), oldHrefs) {
			uniqueEntries = append(uniqueEntries, newEntry)
		}
	}
	return uniqueEntries
}
// Extract unique audit entries from the newly received list by comparing the href of audit entries
// in the old list.