fr
fr

Question from the Go test

Waiting for validation

What bug will occur with the code below ?

ctx = context.WithValue(ctx, "userID", 42)

// ... in another package:
id, _ := ctx.Value("userID").(int)
Author: John PendenqueStatus: Waiting for validationQuestion not yet passed
0
Community EvaluationsNo one has reviewed this question yet, be the first!