Documentation ¶ Index ¶ Variables func GetType(api *spec.ApiSpec, t string) spec.Type func MatchStruct(api string) (info, structBody, service string, err error) type Parser func NewParser(filename string) (*Parser, error) func (p *Parser) Parse() (api *spec.ApiSpec, err error) 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) Source Files ¶ View all Source files basestate.goentity.goinfostate.goparser.gorootstate.goservicestate.gostate.gotypeparser.gotypestate.goutil.govalidator.govars.go Click to show internal directories. Click to hide internal directories.