Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAbsolutePath ¶
GetAbsolutePath returns the absolute path for a given file path
Types ¶
type FieldInfo ¶
type FieldInfo struct {
Name string // Field name
Type string // Field type as string
Tag string // Complete struct tag
LogTag string // Value of the log tag (e.g., "redact", "-")
IsPointer bool // Whether the field is a pointer type
}
FieldInfo represents information about a struct field
type ParseResult ¶
type ParseResult struct {
Structs []StructInfo // Structs that need LogValue generation
Errors []error // Any parsing errors encountered
}
ParseResult represents the result of parsing Go source files
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
Parser handles parsing Go source files for Oak directives
func (*Parser) ParseFile ¶
func (p *Parser) ParseFile(filePath string) (*ParseResult, error)
ParseFile parses a single Go source file for Oak directives
func (*Parser) ParsePackage ¶
func (p *Parser) ParsePackage(packagePath string) (*ParseResult, error)
ParsePackage parses all Go files in a package directory for Oak directives
Click to show internal directories.
Click to hide internal directories.