What version of Go are you using (go version)?
go1.11rc1
Does this issue reproduce with the latest release?
go1.11rc1 - yes
go1.10.3 - no
What operating system and processor architecture are you using (go env)?
darwin/amd64
What did you do?
package main
import (
"crypto/tls"
"encoding/json"
"fmt"
)
func main() {
connState := &tls.ConnectionState{}
_, err := json.Marshal(connState)
if err != nil {
fmt.Println(err)
}
}
Prints json: unsupported type: func(string, []uint8, int) ([]uint8, bool)
What did you expect to see?
in go1.10.3 nothing is printed
What version of Go are you using (
go version)?go1.11rc1
Does this issue reproduce with the latest release?
go1.11rc1 - yes
go1.10.3 - no
What operating system and processor architecture are you using (
go env)?darwin/amd64
What did you do?
Prints
json: unsupported type: func(string, []uint8, int) ([]uint8, bool)What did you expect to see?
in go1.10.3 nothing is printed