Documentation
¶
Overview ¶
Package after_decl_comments witnesses the AfterDeclComments opt-in: swagger annotations live INSIDE a declaration (a struct's leading body comment) or INLINED as a trailing comment, so the godoc above the declaration stays clean. With the option off, those annotations are inert (nothing discovered).
See .claude/plans/features/comment-source-filtering-design.md.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Count ¶
type Count int // swagger:model countType
Count is a plain count. Clean godoc above; annotation inlined below.
type Stamp ¶
type Stamp = string // swagger:model stampType
Stamp is a string alias. Clean godoc above; annotation inlined trailing.
type Widget ¶
type Widget struct {
Name string `json:"name"`
// Created is documented with a clean godoc; the format annotation is
// inlined as a trailing comment (Phase B).
Created string `json:"created"` // swagger:strfmt date
}
Widget is a widget. This godoc stays clean — no swagger machinery here.
Click to show internal directories.
Click to hide internal directories.