-
Hello all, sorry if this is not the right place to ask this but we recently swapped to huma, love it so far however we have a use-case that I can not find how to do. huma.Context seems to have the value but that is not accessable in a |
Beta Was this translation helpful? Give feedback.
Answered by
x-user
May 7, 2024
Replies: 1 comment 6 replies
-
Are you talking about something like this? huma.Get(
api, "/test/{id}",
func(
ctx context.Context,
input *struct {
ID string `path:"id"`
},
) (*struct{}, error) {
slog.LogAttrs(
context.Background(),
slog.LevelDebug,
"test route",
slog.String("id", input.ID),
)
return nil, nil
}
) |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This will work if fiber