Get returns a copy of the current profile.
()
| 35 | |
| 36 | // Get returns a copy of the current profile. |
| 37 | func (ps *UserProfileStore) Get() UserProfile { |
| 38 | ps.mu.RLock() |
| 39 | defer ps.mu.RUnlock() |
| 40 | return ps.profile |
| 41 | } |
| 42 | |
| 43 | // IsEmpty reports whether the profile holds no user-supplied data yet |
| 44 | // (command counts in TopCommands do not count as "data about the user"). |
no outgoing calls