generator

package
v0.1.1-rc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 9, 2019 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Gen

func Gen(docs []APIDoc, filename string)

Gen genera apidoc like doc

func ParsePackagesFromDir

func ParsePackagesFromDir(dirpath string)

ParsePackagesFromDir parsePackagesFromDir

func Scan

func Scan(currpath string, filename string) (result *[]APIDoc, err error)

Scan scan file

Types

type APIDoc

type APIDoc struct {
	IsSuccessArray bool
	Method         string
	Path           string
	Title          string
	APIName        string
	Group          string
	Version        string
	Params         map[string]Param
	Success        map[string]Param
}

APIDoc entity

type Param

type Param struct {
	Name        string
	Type        string
	Description string
	Child       []Param
}

Param stands for param

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL