Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseDirForComments ¶
Types ¶
type Component ¶
type Component struct {
Types map[string]SwagifyComment
}
func ParseSwagifyComment ¶
this will return something like this: { map[parameter]: {map[<name>]: [line1, line2, ...], map[<name>]: [line1, line2, ...]} map[schema]: {map[<name>]: [line1, line2, ...], map[<name>]: [line1, line2, ...]} }
type MyStruct ¶
func ParseDirForStructs ¶
func ParseDirForStructs(directory string, comments SwagifyComment) (myStructs []MyStruct)
this will take a list of "marked" (through comments) to parse and create a MyStruct structure based on the struct's content, used by "schema", see internal/schema/schema.go
type SwagifyComment ¶
Click to show internal directories.
Click to hide internal directories.