go 1.14 context.WithValue value is map type error #39909
Labels
FrozenDueToAge
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes 1.13 is right
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
What did you expect to see?
package main
import (
"context"
"fmt"
)
func main(){
var md = make(map[string]string)
md["test"] = "it a map"
ctx := context.WithValue(context.TODO(),"key",md)
fmt.Println(ctx)
}
context.TODO.WithValue(type string, val
context WithValue donot write map type
What did you see instead?
can write map
The text was updated successfully, but these errors were encountered: