Versions in this module Expand all Collapse all v0 v0.3.0 Nov 27, 2026 Changes in this version + const AreaExtension + const AreasExtension + const ExamplesExtension + const GroupExtension + const KindCheck + const KindDefinition + const KindDeps + const KindError + const KindGenerated + const KindMethod + const KindOption + const KindRefine + const KindTag + const MethodExtension + const ProgramExtension + const RuleAction + const RuleArea + const RuleExample + const RuleFails + const RuleField + const RuleHandler + const RuleID + const RuleIn + const RuleKey + const RuleMethods + const RuleName + const RuleOptional + const RulePrints + const RuleReason + const RuleRoute + const RuleSchema + const RuleSecret + const RuleSegment + const RuleStutter + const RuleSubDoc + const RuleUnique + const RuleValidate + const SecretExtension + const SettingsPrefix + var Checks = guide.Checks + var ReasonDocs = map[types.Reason]string + var Spec = guide.Spec + func Answer(code int) error + func ErrorSchema() *openapi3.Schema + func Errorf(sentinel error, format string, args ...any) error + func Internal(msg string, cause error) error + func OpenAPI(g *Group) (*openapi3.T, error) + func ReasonFor(status int) types.Reason + func Scaffold(root string, name string, doc string) ([]string, error) + func SchemaName(t reflect.Type) string + func SecretFields() map[string]bool + func SentEmpty(fs []reflect.StructField) []string + func Settings[T any](g *Group) T + type AnswerError struct + Code int + func (e *AnswerError) Error() string + type Answered struct + Code int + Doc string + type CommandExample = command.Example + type Declared struct + AdminOnly bool + Named bool + Permission types.Permission + Where string + type Error struct + Code int + Doc string + Err error + Reason types.Reason + func Conflict(err error, doc string) Error + func Forbidden(err error, doc string) Error + func Invalid(err error, doc string) Error + func NotFound(err error, doc string) Error + func Unavailable(err error, doc string) Error + func (e Error) Because(reason types.Reason) Error + type ErrorResponse struct + Error string + Reason types.Reason + type Group struct + Area area.Name + CommandLong string + CommandNotes string + Defaults any + Deps reflect.Type + Doc string + Docs map[reflect.Type]string + Examples map[reflect.Type]map[string]string + Methods []*Method + Name string + Prefix string + SubDocs map[string]string + Tag string + TagDisplay string + TagDoc string + Title string + func All() []*Group + func Define(name string, doc string, opts ...Option) *Group + func Lookup(name string) *Group + func Register(g *Group) *Group + func (g *Group) CommandPath() []string + func (g *Group) CommandPermission(m command.Command) types.Permission + func (g *Group) Commands() []command.Command + func (g *Group) CurrentSettings() any + func (g *Group) Declared() []Declared + func (g *Group) GroupArea() area.Name + func (g *Group) GroupDoc() string + func (g *Group) GroupLong() string + func (g *Group) GroupName() string + func (g *Group) GroupNotes() string + func (g *Group) Method(name string) *Method + func (g *Group) Path(m *Method) string + func (g *Group) Permission(m *Method) types.Permission + func (g *Group) SetSettings(v any) + func (g *Group) SettingsKey() string + func (g *Group) SettingsType() reflect.Type + func (g *Group) SubDoc(segment string) string + type InternalError struct + Cause error + Msg string + func (e *InternalError) Error() string + func (e *InternalError) Unwrap() error + type Method struct + In reflect.Type + Name string + Out reflect.Type + func Delete[In, Out any](name string) *Method + func Get[In, Out any](name string) *Method + func Post[In, Out any](name string) *Method + func Put[In, Out any](name string) *Method + func (m *Method) Action(segment string) *Method + func (m *Method) AdminOnly() *Method + func (m *Method) Answering() []Answered + func (m *Method) Answers(code int, doc string) *Method + func (m *Method) Check(words string, flags string, pathsAndWants ...any) *Method + func (m *Method) CheckFails(words string, flags string, errorText string) *Method + func (m *Method) Command(short string, long string) *Method + func (m *Method) CommandLong() string + func (m *Method) CommandName() string + func (m *Method) CommandShort() string + func (m *Method) CommandSub(word string) *Method + func (m *Method) Describe(summary string) *Method + func (m *Method) Errors(errs ...Error) *Method + func (m *Method) Example(flags string, doc ...string) *Method + func (m *Method) Examples() []CommandExample + func (m *Method) Explain(text string) *Method + func (m *Method) Fails(doc string, input any) *Method + func (m *Method) HTTPMethod() string + func (m *Method) Handle(fn any) *Method + func (m *Method) Handler() any + func (m *Method) ID(id string) *Method + func (m *Method) Input() reflect.Type + func (m *Method) Key(fields ...string) *Method + func (m *Method) KeyField() string + func (m *Method) Keys() []string + func (m *Method) Location(field string) *Method + func (m *Method) LocationField() string + func (m *Method) Mapped() []Error + func (m *Method) MethodName() string + func (m *Method) NoCheck(why string) *Method + func (m *Method) NoCommand() *Method + func (m *Method) Notes(text string) *Method + func (m *Method) OperationID(g *Group) string + func (m *Method) Output() reflect.Type + func (m *Method) PageNotes() string + func (m *Method) PageResult() string + func (m *Method) Permission(permission types.Permission) *Method + func (m *Method) Prints(out any) *Method + func (m *Method) Public() *Method + func (m *Method) Refusals() []Refusal + func (m *Method) Result(text string) *Method + func (m *Method) Returns(doc string) *Method + func (m *Method) Saying() string + func (m *Method) Says(text string) *Method + func (m *Method) Status(code int) *Method + func (m *Method) Sub(segment string) *Method + func (m *Method) SubPath() string + func (m *Method) SuccessStatus() int + func (m *Method) Unchecked() string + func (m *Method) Use(name string) *Method + type Option interface + func Area(name area.Name) Option + func CommandLong(text string) Option + func CommandNotes(text string) Option + func Config(defaults any) Option + func Doc[T any](doc string) Option + func Example[T any](field string, example string) Option + func Prefix(path string) Option + func SubDoc(segment string, short string) Option + func Tag(name string, display string, doc string) Option + func Title(title string) Option + func Uses[D any]() Option + type Problem struct + Fix string + Group string + Message string + Method string + Rule string + func Validate(g *Group) []Problem + func (p Problem) String() string + type Refusal struct + Doc string + Input any + type SpecExample struct + Doc string + Input map[string]any