()
| 10 | ) |
| 11 | |
| 12 | func Example() { |
| 13 | c := core.New() |
| 14 | c.ProvideEssentials() |
| 15 | c.Provide(otredis.Providers()) |
| 16 | c.Invoke(func(redisClient redis.UniversalClient) { |
| 17 | pong, _ := redisClient.Ping(context.Background()).Result() |
| 18 | fmt.Println(pong) |
| 19 | }) |
| 20 | // Output: |
| 21 | // PONG |
| 22 | } |
nothing calls this directly
no test coverage detected