Add a parser cache map
This commit is contained in:
parent
447cc08884
commit
a791063d5b
11
parser/cache.go
Normal file
11
parser/cache.go
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
package parser
|
||||||
|
|
||||||
|
// cacheItem stores an item of the parser cache.
|
||||||
|
type cacheItem struct {
|
||||||
|
section Section
|
||||||
|
skimmed bool
|
||||||
|
}
|
||||||
|
|
||||||
|
// cache stores all modules that have been parsed so far. They are indexed with
|
||||||
|
// their full path on the filesystem, starting with '/'.
|
||||||
|
var cache = make(map[string] cacheItem)
|
Reference in New Issue
Block a user