parser

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2022 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParsePathGroup

func ParsePathGroup(pathInfos []*types.PathInfo) ([]string, map[string][]*types.PathInfo)

ParsePathGroup 解析路径分组

func ParsePathInfos

func ParsePathInfos(paths map[string]map[string]*types.Operation) []*types.PathInfo

ParsePathInfos 解析路径信息列表

func TrimTypePrefix

func TrimTypePrefix(ty string) string

Types

type Parser

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

Parser Swagger解析器详情

func NewParser

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

NewParser 新建Swagger解析器

func (*Parser) BuildDefine

func (p *Parser) BuildDefine() string

func (*Parser) BuildDetail

func (p *Parser) BuildDetail() string

BuildDetail 构建详情

func (*Parser) BuildOverview

func (p *Parser) BuildOverview() string

BuildOverview 构建概览

func (*Parser) BuildTitle

func (p *Parser) BuildTitle(title string) string

BuildTitle 构建标题

Jump to

Keyboard shortcuts

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