parser

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2025 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*options)

func WithStructMatcherBuilder

func WithStructMatcherBuilder(builder matcher.StructMatcherBuilder) Option

WithStructMatcherBuilder ...

func WithTagsToParse

func WithTagsToParse(tagsToParse []string) Option

type Parser

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

Parser for provided pkg

func NewParser

func NewParser(opts ...Option) *Parser

func (*Parser) ParseAstFile

func (p *Parser) ParseAstFile(file *ast.File) error

ParseAstFile parse ast file directly

func (*Parser) ParsePackage

func (p *Parser) ParsePackage(pkgPath string) error

func (*Parser) ParsedStructs

func (p *Parser) ParsedStructs() []model.Struct

func (*Parser) Reset

func (p *Parser) Reset()

Jump to

Keyboard shortcuts

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