Versions in this module Expand all Collapse all v1 v1.1.0 Feb 4, 2018 Changes in this version + const Name + func GetSchemes(commentLine string) []string + func ReadDoc() (string, error) + func Register(name string, swagger Swagger) + type Operation struct + HttpMethod string + Path string + func NewOperation() *Operation + func (operation *Operation) ParseAcceptComment(commentLine string) error + func (operation *Operation) ParseComment(comment string) error + func (operation *Operation) ParseEmptyResponseComment(commentLine string) error + func (operation *Operation) ParseParamComment(commentLine string) error + func (operation *Operation) ParseProduceComment(commentLine string) error + func (operation *Operation) ParseResponseComment(commentLine string) error + func (operation *Operation) ParseRouterComment(commentLine string) error + func (operation *Operation) ParseTagsComment(commentLine string) + type Parser struct + TypeDefinitions map[string]map[string]*ast.TypeSpec + func New() *Parser + func (parser *Parser) GetSwagger() *spec.Swagger + func (parser *Parser) ParseApi(searchDir string, mainApiFile string) + func (parser *Parser) ParseDefinitions() + func (parser *Parser) ParseGeneralApiInfo(mainApiFile string) + func (parser *Parser) ParseRouterApiInfo(astFile *ast.File) + func (parser *Parser) ParseType(astFile *ast.File) + type Swagger interface + ReadDoc func() string