submodule-go
OfficialType-safe DI for Go with lazy wiring.
Authorsubmodule-org
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Go applications often suffer from tangled wiring and hard-to-test dependencies. submodule-go provides a type-safe DI framework that registers factories and resolves dependencies lazily within scopes, improving testability and maintainability.
Core Features & Use Cases
- Type-safe registration with Make, Resolve, Value, Group, and CreateScope to model service graphs.
- Lazy initialization and per-scope singletons to ensure deterministic behavior and easy testing.
- Testability via isolated scopes, mock overrides, and structural wiring (submodule.In, submodule.Self) with minimal boilerplate.
- Supports dependency overrides and substitution to mock services in tests without changing production code.
Quick Start
Create a scope, register dependencies with Make, and Resolve a type to obtain a ready-to-use instance.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: submodule-go Download link: https://github.com/submodule-org/submodule.go/archive/main.zip#submodule-go Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.