How fe3dback/go-arch-lint works
Main Components
a) Core Components:
• CLI Interface Layer
• Operation Handlers
• Services Layer
• Models Layer
• Internal Container (DI)
b) Key Services:
• Checker Service
• Project Service
• Spec Service
• Render Service
• Schema Service
┌─ CLI Layer (Entry Point) ─────────────────────────────────────┐
• ┌─ Operations Layer ──────────────────────────────────────┐ │
• ┌─ Services Layer ─────────────────────────────────┐ │ │
• ┌─ Core Services ───────────────────────────┐ │ │ │
• Checker │ │ │ │
• Project │ │ │ │
• Spec │ │ │ │
• Render │ │ │ │
• Schema │ │ │ │
• ┘ │ │ │
• ┌─ Models Layer ────────────────────────────┐ │ │ │
• Arch Models │ │ │ │
• Common Models │ │ │ │
• Operation Models │ │ │ │
• ┘ │ │
• ┘ │
• ┘ │
• ┘
Interaction Flows
• Command flow from CLI → Operations → Services
• Data flow between Services
• Model usage across layers
• File system interactions for reading project files
• Output rendering flow
Implementation Details
• Container (DI) system
• Command pattern implementation
• Service interfaces
• Model relationships
• File system interactions
External Dependencies
Integration points with:
• Go standard library (for AST parsing)
• YAML/JSON parsers
• Graph generation tools
• File system
Configuration flow
This architecture represents a well-structured Go application following clean architecture principles, with clear separation of concerns and dependency rules.