parser

package
v0.0.0-...-d79b3d1 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Skip = errors.New("field skipped")

Skip is an error that is returned by the ParseField for ignoring a field.

Functions

func Parse

func Parse(ctx *models.FieldableContext) error

func ParseEnvironment

func ParseEnvironment(ctx *EnvironmentContext) (*models.Environment, error)

Types

type EnvironmentContext

type EnvironmentContext struct {
	Reporter      reporters.Reporter
	InputPkg      *myasthurts.Package
	OutputPkg     *myasthurts.Package
	Fieldables    []*models.Fieldable
	FieldableMap  map[string]*models.Fieldable
	Imports       *models.CtxImports
	ModelsImports *models.CtxImports
}

type SchemaFieldModifier

type SchemaFieldModifier func() string

Jump to

Keyboard shortcuts

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