parser

package
v0.0.0-...-e3c0e0a Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Definition

type Definition struct {
	Name       inflect.Name
	Properties []Property
}

type Name

type Name string

func (Name) VarNameUnderscore

func (n Name) VarNameUnderscore() string

type Parser

type Parser struct {
	Project string
	// Routes
	Definitions []Definition
}

func NewParser

func NewParser(projectPath string) *Parser

func (*Parser) ParseProject

func (p *Parser) ParseProject() error

type Property

type Property struct {
	Name Name
	Type string
	Tag  string
}

type Route

type Route struct {
	Name   string
	Method string
}

Jump to

Keyboard shortcuts

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