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?

  1. Web Applications Guide - Complete patterns for production web apps

  2. Framework Integration - Dedicated guides for Gin, Chi, Echo, Fiber, and net/http

  3. Scopes & Isolation - Deep dive into request isolation

Organizing a Large Application?

  1. Modules - Group related services for better organization

  2. Keyed Services - Multiple implementations of the same interface

  3. Service Groups - Collect services for batch operations

Simplifying Complex Constructors?

  1. Parameter Objects - Automatic field injection with In types

  2. Result Objects - Register multiple services from one constructor

Testing Your Application?

  1. Testing Guide - Strategies for testing with DI

  2. Interface Binding - Mock implementations for testing

Something Went Wrong?

  1. Error Handling Guide - Debug common issues

  2. Lifetimes Deep Dive - Understand lifetime rules

Quick Reference

Core Concepts

Topic

Description

How It Works

Visual guide to dependency resolution

Lifetimes

Singleton, Scoped, Transient explained

Scopes

Request isolation and context

Modules

Organizing large applications

Features

Feature

Use Case

Keyed Services

Multiple implementations of same type

Service Groups

Collect related services

Parameter Objects

Simplify complex constructors

Result Objects

Multi-service registration

Interface Binding

Register concrete as interface

Resource Cleanup

Automatic disposal

Integrations

Framework

Guide

Gin

Gin Integration

Chi

Chi Integration

Echo

Echo Integration

Fiber

Fiber Integration

net/http

net/http Integration

Get Help


Happy building with godi!