Versions in this module Expand all Collapse all v1 v1.3.2 Jun 12, 2018 Changes in this version + const Name + const Version + func CheckSchemaType(typeName string) + func GetSchemes(commentLine string) []string + func ReadDoc() (string, error) + func Register(name string, swagger Swagger) + func Skip(f os.FileInfo) error + func TransToValidSchemeType(typeName string) string + 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) ParseSecurityComment(commentLine string) error + func (operation *Operation) ParseTagsComment(commentLine string) + type Parser struct + PropNamingStrategy string + 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) ParseDefinition(pkgName string, typeSpec *ast.TypeSpec, typeName 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