Next Steps
You now understand the fundamentals of godi. Here’s where to go next based on what you’re building.
Building a Web Application?
Web Applications Guide - Complete patterns for production web apps
Framework Integration - Dedicated guides for Gin, Chi, Echo, Fiber, and net/http
Scopes & Isolation - Deep dive into request isolation
Organizing a Large Application?
Modules - Group related services for better organization
Keyed Services - Multiple implementations of the same interface
Service Groups - Collect services for batch operations
Simplifying Complex Constructors?
Parameter Objects - Automatic field injection with
IntypesResult Objects - Register multiple services from one constructor
Testing Your Application?
Testing Guide - Strategies for testing with DI
Interface Binding - Mock implementations for testing
Something Went Wrong?
Error Handling Guide - Debug common issues
Lifetimes Deep Dive - Understand lifetime rules
Quick Reference
Core Concepts
Topic |
Description |
|---|---|
Visual guide to dependency resolution |
|
Singleton, Scoped, Transient explained |
|
Request isolation and context |
|
Organizing large applications |
Features
Feature |
Use Case |
|---|---|
Multiple implementations of same type |
|
Collect related services |
|
Simplify complex constructors |
|
Multi-service registration |
|
Register concrete as interface |
|
Automatic disposal |
Integrations
Framework |
Guide |
|---|---|
Gin |
|
Chi |
|
Echo |
|
Fiber |
|
net/http |
Get Help
GitHub Issues - Report bugs or request features
API Reference - Complete API documentation
Happy building with godi!