MCPcopy Create free account
hub / github.com/daodst/chat / mostRecent

Function mostRecent

server/topic.go:1082–1090  ·  view source on GitHub ↗
(vals map[string]time.Time)

Source from the content-addressed store, hash-verified

1080}
1081
1082func mostRecent(vals map[string]time.Time) (tag string, max time.Time) {
1083 for key, val := range vals {
1084 if val.After(max) {
1085 max = val
1086 tag = key
1087 }
1088 }
1089 return
1090}
1091
1092func isNullValue(i interface{}) bool {
1093 // Del control character

Callers 2

replyGetInfoMethod · 0.85
replyGetSubMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected