Skip to content

crypto/tls: ConnectionState struct can not be json encoded in 1.11rc1 #27125

Description

@briankassouf

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions