Meta Answer
Questions Tags Users Badges

How to get UID in Golang of Answer source code?

easysys 1
Created Jan 21, 2024 Edited Jan 26, 2024
Viewed 183

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

support development
Share
1 Answers
import "github.com/apache/incubator-answer/internal/base/middleware"

userID := middleware.GetLoginUserIDFromContext(ctx)
edited Jan 26, 2024
LinkinStar1786
answered Jan 24, 2024
Related
Elastic Search ( opensearch backend) Plugin is not searching partial text
1 answers
How to configure Kubernetes Answer deployment for HA
How to export all of the Question-Answer to build my vector-knowledge-base?
2 answers
What is a tag?
1 answers
What is reputation and how do I earn them?
1 answers
Minimal example custom route plugin
1 answers

Terms of service Privacy policy

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