Documentation ¶
Index ¶
- func FindProjectRoot(abs string) (s string, err error)
- func GetModuleRoot(root string) (s string, err error)
- func Imports(absSrc string) (imports []string, err error)
- type ImportRefs
- type WatchCache
- func (c *WatchCache) AddDir(dir string) (dirs map[string]any)
- func (c *WatchCache) AddFile(abs string) (dirs map[string]any)
- func (c *WatchCache) PopDir(dir string) (dirs map[string]any)
- func (c *WatchCache) RemoveDir(dir string) (dirs map[string]any)
- func (c *WatchCache) RemoveFile(file string) (dirs map[string]any)
- func (c *WatchCache) UpdateFile(abs string) (remove, add map[string]any)
- type Watcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindProjectRoot ¶
func GetModuleRoot ¶
Types ¶
type ImportRefs ¶
func ListImports ¶
func ListImports(path string) (l []ImportRefs, err error)
func (ImportRefs) String ¶
func (i ImportRefs) String() string
type WatchCache ¶
type WatchCache struct {
// contains filtered or unexported fields
}
func NewWatchCache ¶
func NewWatchCache(root, moduleName string) *WatchCache
func (*WatchCache) RemoveFile ¶
func (c *WatchCache) RemoveFile(file string) (dirs map[string]any)
func (*WatchCache) UpdateFile ¶
func (c *WatchCache) UpdateFile(abs string) (remove, add map[string]any)
Click to show internal directories.
Click to hide internal directories.