Len returns the number of variables in the Vars map.
()
| 36 | |
| 37 | // Len returns the number of variables in the Vars map. |
| 38 | func (vars *Vars) Len() int { |
| 39 | if vars == nil || vars.om == nil { |
| 40 | return 0 |
| 41 | } |
| 42 | defer vars.mutex.RUnlock() |
| 43 | vars.mutex.RLock() |
| 44 | return vars.om.Len() |
| 45 | } |
| 46 | |
| 47 | // Get returns the value the the variable with the provided key and a boolean |
| 48 | // that indicates if the value was found or not. If the value is not found, the |
no outgoing calls