You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
322 B

2 years ago
package logging
import (
"context"
"git.diulo.com/mogfee/kit/middleware"
)
func Server() middleware.Middleware {
return func(handler middleware.Handler) middleware.Handler {
return func(ctx context.Context, a any) (any, error) {
2 years ago
ctx = context.WithValue(ctx, "user-id", "1111")
2 years ago
return handler(ctx, a)
}
}
}