MCPcopy Create free account
hub / github.com/evilsocket/ditto / Attributes

Method Attributes

cmd/ditto/changes.go:31–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29}
30
31func (e Event) Attributes() []string {
32 list := make([]string, 0)
33 uniq := make(map[string]bool, 0)
34
35 for _, c := range e.Changes {
36 for _, a := range c.Attributes {
37 uniq[a] = true
38 }
39 }
40
41 for a, _ := range uniq {
42 list = append(list, a)
43 }
44
45 sort.Strings(list)
46
47 return list
48}
49
50func structCompare(a, b interface{}) (bool, string) {
51 va := reflect.ValueOf(a)

Callers 2

monitorDeltasFunction · 0.80
printChangesFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected