Documentation ¶
Index ¶
- func ParseDirectory(directoryPath string, opts ...ParserOptionFunc) domain.Packages
- func ParseField(field *ast.Field) (domain.Fields, error)
- func ParseFields(fieldList []*ast.Field) domain.Fields
- func ParseFile(filePath string) domain.Package
- func WithFileExclusion(exclusionRegex string) func(*parserOptions)
- func WithRecursive() func(*parserOptions)
- type ParserOptionFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseDirectory ¶
func ParseDirectory(directoryPath string, opts ...ParserOptionFunc) domain.Packages
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)
Click to show internal directories.
Click to hide internal directories.