Versions in this module Expand all Collapse all v0 v0.1.6 Nov 21, 2022 Changes in this version + func FindComments(w io.Writer, prog *Program) error + func JSONSchemaType(t string) string + func MapType(prog *Program, in string) (kind, format string) + func ParseLookup(lookup string, filePath string) (name, pkg string) + func PathParams(path string) []string + type Config struct + Basepath string + ContactEmail string + ContactName string + ContactSite string + Debug bool + DefaultRequestCt string + DefaultResponse map[int]Response + DefaultResponseCt string + Description template.HTML + MapFormats map[string]string + MapTypes map[string]string + Output func(io.Writer, *Program) error + Packages []string + Prefix string + StructTag string + Title string + Version string + type DefaultResponse struct + Description string + Lookup string + Schema Schema + type EmptyInterface interface + type EmptyStructInterfaces struct + Data interface{} + DataArray []interface{} + type Endpoint struct + End token.Position + Extend map[string]interface{} + Info string + Method string + Path string + Pos token.Position + Request Request + Responses map[int]Response + Tagline string + Tags []string + type ErrNotStruct struct + TypeSpec *ast.TypeSpec + func (err ErrNotStruct) Error() string + type Param struct + KindField *ast.Field + Name string + type Program struct + Config Config + Endpoints []*Endpoint + References map[string]Reference + func NewProgram(dbg bool) *Program + type Ref struct + Description string + Reference string + type Reference struct + Context string + Fields []Param + File string + Info string + IsEmbed bool + IsSlice bool + Lookup string + Name string + Package string + Schema *Schema + Wrapper string + func GetReference(prog *Program, context string, isEmbed bool, lookup, filePath string) (*Reference, error) + type Request struct + Body *Ref + ContentType string + Form *Ref + Path *Ref + Query *Ref + type Response struct + Body *Ref + ContentType string + func ParseResponse(prog *Program, filePath, line string) (int, *Response, error) + type Schema struct + AdditionalProperties *Schema + CustomSchema string + Default string + Description string + Enum []string + FieldWhitelist []string + Format string + Items *Schema + Maximum int + Minimum int + OmitDoc bool + Properties map[string]*Schema + Readonly *bool + Reference string + Required []string + Title string + Type string