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.
 
 
 

15 lines
322 B

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) {
ctx = context.WithValue(ctx, "user-id", "1111")
return handler(ctx, a)
}
}
}