Get returns the value the the include with the provided key and a boolean that indicates if the value was found or not. If the value is not found, the returned include is a zero value and the bool is false.
(key string)
| 64 | // that indicates if the value was found or not. If the value is not found, the |
| 65 | // returned include is a zero value and the bool is false. |
| 66 | func (includes *Includes) Get(key string) (*Include, bool) { |
| 67 | if includes == nil || includes.om == nil { |
| 68 | return &Include{}, false |
| 69 | } |
| 70 | defer includes.mutex.RUnlock() |
| 71 | includes.mutex.RLock() |
| 72 | return includes.om.Get(key) |
| 73 | } |
| 74 | |
| 75 | // Set sets the value of the include with the provided key to the provided |
| 76 | // value. If the include already exists, its value is updated. If the include |
nothing calls this directly
no outgoing calls
no test coverage detected