MCPcopy Create free account
hub / github.com/nsf/gocode / new_package_file_cache_forever

Function new_package_file_cache_forever

package.go:43–49  ·  view source on GitHub ↗

Creates a cache that stays in cache forever. Useful for built-in packages.

(name, defalias string)

Source from the content-addressed store, hash-verified

41
42// Creates a cache that stays in cache forever. Useful for built-in packages.
43func 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
51func (m *package_file_cache) find_file() string {
52 if file_exists(m.name) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected