parser

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetName

func GetName(t string, tag reflect.StructTag) string

func GetRoute

func GetRoute(route string) (deprecated bool, method, path string, ok bool)

GetRoute "!GET /path"

func GetTypeHash

func GetTypeHash(typ gotype.Type) string

func IsExported

func IsExported(name string) bool

Types

type Parser

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

Parser is the parse type generating definitions

func NewParser

func NewParser(imp *gotype.Importer) *Parser

func (*Parser) API

func (g *Parser) API() *spec.API

func (*Parser) Import

func (g *Parser) Import(pkgpath string, ways string) error

Jump to

Keyboard shortcuts

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