Documentation
¶
Index ¶
- Variables
- func ForeachTopicGroup(fn func(name string, group TopicGroup))
- func Help(ctx *core.Context, args ...core.Value)
- func HelpFor(s string, config HelpMessageConfig) (string, bool)
- func HelpForGoFunc(fn any, config HelpMessageConfig) (string, bool)
- func HelpForSymbolicGoFunc(fn *symbolic.GoFunction, config HelpMessageConfig) (string, bool)
- func RegisterHelpValue(v any, topic string)
- func RegisterHelpValues(values map[string]any)
- type Example
- type HelpMessageConfig
- type HelpMessageFormat
- type TopicGroup
- type TopicHelp
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //go:embed builtins.yaml BUILTIN_HELP_YAML string //go:embed language.yaml LANGUAGE_HELP_YAML string )
Functions ¶
func ForeachTopicGroup ¶
func ForeachTopicGroup(fn func(name string, group TopicGroup))
func HelpForGoFunc ¶
func HelpForGoFunc(fn any, config HelpMessageConfig) (string, bool)
func HelpForSymbolicGoFunc ¶
func HelpForSymbolicGoFunc(fn *symbolic.GoFunction, config HelpMessageConfig) (string, bool)
func RegisterHelpValue ¶
func RegisterHelpValues ¶
Types ¶
type HelpMessageConfig ¶
type HelpMessageConfig struct {
Format HelpMessageFormat
}
type HelpMessageFormat ¶
type HelpMessageFormat int
const ( ColorizedTerminalFormat HelpMessageFormat = iota + 1 MarkdownFormat )
type TopicGroup ¶
type TopicHelp ¶
type TopicHelp struct { Value any //scalar Topic string `yaml:"topic"` Alias string `yaml:"alias"` Summary string `yaml:"summary"` Text string `yaml:"text"` IsNamespace bool `yaml:"namespace"` //lists RelatedTopics []string `yaml:"related-topics"` Examples []Example `yaml:"examples"` SubTopicNames []string `yaml:"subtopic-names"` SubTopics []TopicHelp `yaml:"subtopics"` }
func (TopicHelp) String ¶
func (h TopicHelp) String(config HelpMessageConfig) string
Click to show internal directories.
Click to hide internal directories.