Get gets the value of a key from the object
(key string)
| 55 | |
| 56 | // Get gets the value of a key from the object |
| 57 | func (obj *Object) Get(key string) (value interface{}, present bool) { |
| 58 | obj.lock.RLock() |
| 59 | defer obj.lock.RUnlock() |
| 60 | |
| 61 | value, present = obj.object[key] |
| 62 | return |
| 63 | } |
| 64 | |
| 65 | // GetAll returns the entire object |
| 66 | func (obj *Object) GetAll() map[string]interface{} { |
no outgoing calls