1
0
mirror of https://github.com/IBM/fp-go.git synced 2026-03-10 13:31:01 +02:00

Compare commits

...

2 Commits

Author SHA1 Message Date
Dr. Carsten Leue
3743361b9f fix: context7 at correct location
Signed-off-by: Dr. Carsten Leue <carsten.leue@de.ibm.com>
2026-03-06 14:41:47 +01:00
Dr. Carsten Leue
69d11f0a4b fix: claim context7
Signed-off-by: Dr. Carsten Leue <carsten.leue@de.ibm.com>
2026-03-06 14:39:58 +01:00
2 changed files with 5 additions and 0 deletions

4
context7.json Normal file
View File

@@ -0,0 +1,4 @@
{
"url": "https://context7.com/ibm/fp-go",
"public_key": "pk_7wJdJRn8zGHxvIYu7eh9h"
}

View File

@@ -128,6 +128,7 @@ var loggerInContextKey loggerInContextType
// logger.Info("Processing request")
// }
func GetLoggerFromContext(ctx context.Context) *slog.Logger {
// using idomatic style to avoid import cycle
value, ok := ctx.Value(loggerInContextKey).(*slog.Logger)
if !ok {
return globalLogger.Load()