parser

package
v0.0.0-...-4bd9485 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parser

type Parser struct {
	// contains filtered or unexported fields
}

Parser process the main package and generate the doc

func New

func New(mainPackage string) (*Parser, error)

New initializate and returns a new Parser

func (*Parser) Process

func (p *Parser) Process(packagePath, importScope string, externalPackage bool) error

Process analyse go code for comments. Only commnets where the first line has swagg-doc willl be processed.

func (*Parser) YAML

func (p *Parser) YAML() error

YAML return the YAML string of this parse

Jump to

Keyboard shortcuts

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