Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Discover = sync.OnceValues(func() ([]Plugin, error) { var plugins []Plugin seen := make(map[string]bool) for _, dir := range getPluginDirectories() { for _, plugin := range scanDirectory(dir) { if !seen[plugin.Name] { plugins = append(plugins, plugin) seen[plugin.Name] = true } } } slices.SortFunc(plugins, func(i, j Plugin) int { return cmp.Compare(i.Name, j.Name) }) return plugins, nil })
Functions ¶
func UpdatePath ¶
func UpdatePath() error
Types ¶
Click to show internal directories.
Click to hide internal directories.