astParser

package
v1.3.5 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseDirectory

func ParseDirectory(directoryPath string, opts ...ParserOptionFunc) domain.Packages

func ParseField

func ParseField(field *ast.Field) (domain.Fields, error)

func ParseFields

func ParseFields(fieldList []*ast.Field) domain.Fields

func ParseFile

func ParseFile(filePath string) domain.Package

func WithFileExclusion added in v1.2.0

func WithFileExclusion(exclusionRegex string) func(*parserOptions)

func WithRecursive added in v1.2.0

func WithRecursive() func(*parserOptions)

Types

type ParserOptionFunc added in v1.2.0

type ParserOptionFunc func(*parserOptions)

Jump to

Keyboard shortcuts

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