Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Root = &RootExpr{}
Root is the design root expression for the docs plugin.
Functions ¶
This section is empty.
Types ¶
type RootExpr ¶
type RootExpr struct {
// UseJSONTags instructs the docs generator to use JSON struct tags
// specified via Meta ("struct:tag:json") as field names.
UseJSONTags bool
// InlineRefs instructs the docs generator to inline $ref schemas by
// replacing them with copies of their referenced definitions where
// possible. Cycles are preserved by leaving $ref in place when needed.
InlineRefs bool
// IncludedTypes are the user types to force-emit into definitions.
IncludedTypes []expr.UserType
}
RootExpr keeps track of docs plugin configuration toggles.
func (*RootExpr) IncludeTypes ¶ added in v3.22.6
IncludeTypes registers the given user types for forced definition emission.
Click to show internal directories.
Click to hide internal directories.