parser

package
v0.0.0-...-aff7a71 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Field

type Field struct {
	Name     string
	TypeName string
}

type Parser

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

func NewParser

func NewParser(unexported, invertMatch bool) *Parser

func (*Parser) Parse

func (p *Parser) Parse(r io.Reader, allowedStructs []string) (map[string][]StructDecl, error)

func (*Parser) ParseDir

func (p *Parser) ParseDir(path string, allowedStructs []string) (map[string][]StructDecl, error)

type StructDecl

type StructDecl struct {
	Name   string
	Fields []Field
}

Jump to

Keyboard shortcuts

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