Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompilerError ¶
type CompilerError struct {
Type ErrorType
Message string
Field string
Struct string
Rule string
Position string
}
CompilerError represents an error during compilation
func (CompilerError) Error ¶
func (e CompilerError) Error() string
type CompilerErrors ¶
type CompilerErrors []CompilerError
CompilerErrors holds multiple compiler errors
func (*CompilerErrors) Add ¶
func (errs *CompilerErrors) Add(err CompilerError)
func (CompilerErrors) Error ¶
func (errs CompilerErrors) Error() string
func (CompilerErrors) HasErrors ¶
func (errs CompilerErrors) HasErrors() bool
type FieldType ¶
type FieldType struct {
GoType types.Type // The actual Go type
Kind TypeKind // Simplified type classification
IsPointer bool // Whether it's a pointer type
IsSlice bool // Whether it's a slice type
Underlying types.Type // Underlying type for pointers/slices
}
FieldType represents the type information for a struct field
type GenerationConfig ¶
type GenerationConfig struct {
InputFile string
PackagePath string
OutputFile string
PackageName string
ValforgePackage string // Name of the package for supporting code (default: "valforge")
ValforgePackagePath string // Path to error package (e.g., "internal/valgen")
ModuleName string
ProjectRoot string // Project root directory
Version string
IncTimestampsInComments bool
}
GenerationConfig holds configuration for code generation
type ValidationField ¶
ValidationField represents a field with validation rules and type info
type ValidationStruct ¶
type ValidationStruct struct {
Name string
PackageName string
Fields []ValidationField
}
ValidationStruct represents a struct with validation
Click to show internal directories.
Click to hide internal directories.