How tompston/gut works
Main Components
a) Core Components:
• Converter Engine (main processing unit)
• Type System Handler
• File Generator
• Configuration Manager
b) Input/Output Components:
• Go Struct Input Interface
• TypeScript Interface Output
• File System Interface
[Go Structs] → [Converter Engine] → [TypeScript Interfaces]
Detailed Component Breakdown
a) Input Layer:
• Struct Parser
• Tag Parser (for handling JSON tags)
• Type Detection System
b) Processing Layer (Converter Engine):
• Type Mapper
• Special Type Handler (UUID, Time, BigInt)
• Generic Type Processor
• Array Type Handler
• Type Converter
c) Output Layer:
• Interface Generator
• File Writer
• Formatting Manager
Flow Directions
• Struct input flow
• Type conversion flow
• Configuration application
• Output generation
Integration Points
Interaction with:
• File system (for reading/writing)
• Configuration system
• Type system
Type system flexibility
Key Relationships to Highlight:
[Configuration] ↔ [Converter Engine]
[Type System] ↔ [Converter Engine]
[Parser] → [Type Mapper] → [Interface Generator]
• Different component types
• Special symbols used for configuration points
• Type system integration points
Keep the abstraction level focused on the architectural components while showing the key features that make this package unique, such as:
• JSON tag handling
• Custom type conversion
• Generic support
• Array type generation
• Custom interface naming