Documentation ¶
Index ¶
- func GetEndpoints(pkg map[string]*ast.Package, fset *token.FileSet) map[string][]*Endpoint
- func IdentString(str string, ch int) string
- func SwaggerResponsesWithSuffix(fset *token.FileSet, pkgs map[string]*ast.Package, suffix string, depth int) string
- func SwaggerStructs(structDescr *Struct, depth int) string
- func SwaggerStructsWithSuffix(fset *token.FileSet, pkgs map[string]*ast.Package, suffix string, depth int) string
- type Endpoint
- type EndpointDetails
- type Field
- type Parameter
- type Response
- type Struct
- type Tag
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEndpoints ¶
Main docs
func IdentString ¶
IdentString will preprend some white-space before the string.
func SwaggerStructs ¶
Types ¶
type Endpoint ¶
type Endpoint struct { Node ast.Node Info *ast.FuncDecl Comments *ast.CommentGroup Details EndpointDetails Position token.Position }
func NewEndpoint ¶
type EndpointDetails ¶
type Parameter ¶
func ParseParameter ¶
type Response ¶
func ParseResponse ¶
Click to show internal directories.
Click to hide internal directories.