Has returns true if the key is in the imports map.
(specifier string)
| 50 | |
| 51 | // Has returns true if the key is in the imports map. |
| 52 | func (i *Imports) Has(specifier string) bool { |
| 53 | i.lock.RLock() |
| 54 | defer i.lock.RUnlock() |
| 55 | _, ok := i.imports[specifier] |
| 56 | return ok |
| 57 | } |
| 58 | |
| 59 | // Get returns the value of the key in the imports map. |
| 60 | func (i *Imports) Get(specifier string) (string, bool) { |
no outgoing calls
no test coverage detected