Documentation
¶
Overview ¶
Package embedded_types exercises schema-builder edge cases when a struct embeds an alias, a named empty interface, or the predeclared error interface.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseAlias ¶
type BaseAlias = Base
BaseAlias aliases Base so that embedding it exercises the alias branch of buildEmbedded.
type EmbedsEmptyNamedInterface ¶
EmbedsEmptyNamedInterface embeds a named empty interface.
swagger:model
type EmbedsError ¶
type EmbedsError struct {
Code int `json:"code"`
// contains filtered or unexported fields
}
EmbedsError embeds the predeclared error interface, exercising the isStdError branch of buildNamedEmbedded.
swagger:model
type EmbedsNamedInterface ¶
EmbedsNamedInterface embeds a non-empty, non-error named interface.
swagger:model
Click to show internal directories.
Click to hide internal directories.