How to get UID (User ID) in Golang of Answer source code?
How to get UID (User ID) in Golang of Answer source code?
import "github.com/apache/incubator-answer/internal/base/middleware"
userID := middleware.GetLoginUserIDFromContext(ctx)
Do you need to import anything? Can it be used directly?
import "github.com/apache/incubator-answer/internal/base/middleware"
Can you be more specific about
UID? What's the id?User ID