ctx = context.WithValue(ctx, "2", "two")

fmt.Println(ctx.Value("1"))
fmt.Println(ctx.Value("2"))

 

相关文章:

  • 2021-12-25
  • 2021-06-16
  • 2021-05-13
  • 2021-07-01
猜你喜欢
  • 2021-05-17
  • 2021-10-10
  • 2022-01-09
  • 2022-12-23
  • 2021-05-27
  • 2021-07-17
  • 2022-01-22
相关资源
相似解决方案