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 162
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
LinkinStar1676
answered Jan 24, 2024
Related
upgrading to custom docker image with plugins
1 answers
How to install plugins on 1Panel?
1 answers
Custom pages
1 answers
質問の削除に関する制限について / Restrict question deletion when answers exist
2 answers
Tags cannot be deleted
1 answers
Issue with code being overwritten while packaging a plugin
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.