parser

package
v1.0.15-0...-3723d28 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2020 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrStructNotFound      = errors.New("struct not found")
	ErrUnSupportType       = errors.New("unsupport type")
	ErrUnSupportInlineType = errors.New("unsupport inline type")
)

Functions

func GetType

func GetType(api *spec.ApiSpec, t string) spec.Type

func MatchStruct

func MatchStruct(api string) (info, structBody, service string, err error)

Types

type Parser

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

func NewParser

func NewParser(filename string) (*Parser, error)

func (*Parser) Parse

func (p *Parser) Parse() (api *spec.ApiSpec, err error)

Jump to

Keyboard shortcuts

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