Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetOrAddFromCache ¶
func GetOrAddFromCache(ctx context.Context, key string, add func() (rel.Expr, error)) (rel.Expr, error)
GetOrAddFromCache gets the cached expression based on the given filepath from the cache in context. If the file is not in the cache it will simply store the filepath and the expression in the cache. The function panics when cache is not in context.
func HasImportCacheFrom ¶
HasImportCacheFrom returns true if there is an import cache in the context.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.