Documentation
¶
Overview ¶
Package catalog extracts the exported API of the Foundation runtime module.
The result is written next to the MCP server and embedded in the CLI, so a tool answering questions about Foundation answers from the source of the version it ships with, never from memory. Regeneration is deterministic and checked in continuous integration, which is what keeps the answer aligned with the code as the code moves.
Index ¶
Constants ¶
const DocsDir = "mcp/docs"
DocsDir is the embedded documentation directory, relative to the development module root.
const File = "mcp/api.json"
File is the catalog location relative to the development module root.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type API ¶
type API struct {
Module string `json:"module"`
Go string `json:"go"`
Packages []Package `json:"packages"`
}
API is the exported surface of one module.
type Field ¶
type Field struct {
Name string `json:"name"`
Type string `json:"type"`
Tag string `json:"tag,omitempty"`
Doc string `json:"doc,omitempty"`
}
Field is an exported struct field, including its tag.
type Method ¶
type Method struct {
Name string `json:"name"`
Signature string `json:"signature"`
Doc string `json:"doc,omitempty"`
}
Method is an exported method of a type.