Examples
Complete working examples are available in the examples directory of the GitHub repository.
- basic - Basic usage example showing singleton registration and retrieval
- bindlogger - How to inject loggers and other utilities
- context_jwt_user - Context-aware retrieval and JWT claim mapping into a User dependency
- dynamiconstructor - Dynamic constructor registration examples
- guessing_types - Type guessing and interface examples
Each example is a complete, runnable Go program that demonstrates specific features of Remy DI.
Here’s a simple example to get you started:
| |
For more detailed examples, visit the examples directory on GitHub.