Apache Answer Meta
Questions Tags Users Badges

How to get UID in Golang of Answer source code?

Asked Jan 21, 2024 Modified Jan 26, 2024
Viewed 164
support development

How to get UID (User ID) in Golang of Answer source code?

edited Jan 26, 2024
easysys1
asked Jan 21, 2024
1 Answers
import "github.com/apache/incubator-answer/internal/base/middleware"

userID := middleware.GetLoginUserIDFromContext(ctx)
edited Jan 26, 2024
LinkinStar1731
answered Jan 24, 2024
Related
Could you please provide information about the default search functionality's search rules?
1 answers
How to allow the question content to be empty? Some questions are simple enough with just a title
1 answers
Building a Custom Docker Image with Plugins for Apache Answer Suggest Best Practices?
1 answers
I want to run Apache Answers on a Kubernetes Cluster with our in house OIDC
1 answers
How to install plugins on 1Panel?
1 answers
upgrading to custom docker image with plugins
1 answers

Terms of service Privacy policy

Powered by Answer - the open-source software that powers Q&A communities.
Made with love © 2025 Apache Answer Meta.