code: func (m *MemLogger) GetFunc(f func(*LogEntry) bool) *LogEntry {
  	if m.lock != nil {
  		m.lock.Lock()
  		defer m.lock.Unlock()
  	}
  	if m.data == nil {
  		return nil
  	}
  	for _, ent := range *m.data {
  		if f(&ent) {
  			clone := ent
  			return &clone
  		}
  	}
  	return nil
  }
docs: // GetFunc returns the first matching log entry.