Documentation
¶
Index ¶
- type HelpEntry
- type Registry
- func (r *Registry) AllCategories() []string
- func (r *Registry) AllEntries() []*HelpEntry
- func (r *Registry) EntriesByCategory(category string) []*HelpEntry
- func (r *Registry) Lookup(name string) *HelpEntry
- func (r *Registry) Register(entry *HelpEntry)
- func (r *Registry) Search(query string) []SearchResult
- type SearchResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HelpEntry ¶
type HelpEntry struct {
Name string // Primary name (e.g., "print", "if statement")
Description string // Short description
Category string // "command", "keyword", "function", "operator", "concept"
LongDesc string // Detailed explanation
Examples []string // Code examples
Keywords []string // Additional search terms
Aliases []string // Alternative names
SeeAlso []string // Related topics
}
HelpEntry represents a single help topic with searchable metadata.
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry manages all help entries and provides search functionality.
func NewRegistry ¶
func NewRegistry() *Registry
NewRegistry creates a new help registry with default content.
func (*Registry) AllCategories ¶
AllCategories returns a list of all unique categories in the registry.
func (*Registry) AllEntries ¶
AllEntries returns all help entries sorted by name.
func (*Registry) EntriesByCategory ¶
EntriesByCategory returns all help entries in a specific category.
func (*Registry) Search ¶
func (r *Registry) Search(query string) []SearchResult
Search performs fuzzy search across all help entries and returns ranked results.
type SearchResult ¶
SearchResult represents a help entry with its relevance score.
Click to show internal directories.
Click to hide internal directories.