Creates a cache that stays in cache forever. Useful for built-in packages.
(name, defalias string)
| 41 | |
| 42 | // Creates a cache that stays in cache forever. Useful for built-in packages. |
| 43 | func new_package_file_cache_forever(name, defalias string) *package_file_cache { |
| 44 | m := new(package_file_cache) |
| 45 | m.name = name |
| 46 | m.mtime = -1 |
| 47 | m.defalias = defalias |
| 48 | return m |
| 49 | } |
| 50 | |
| 51 | func (m *package_file_cache) find_file() string { |
| 52 | if file_exists(m.name) { |
no outgoing calls
no test coverage detected