Skip to content

net/url: URL should implement UnmarshalText, not just UnmarshalBinary #25705

@aviau

Description

@aviau

The URL struct of net/url only implements UnmarshalBinary.

I think that it should also implement UnmarshalText (it would be the same code)

There are parsers that depend on this.

net/url UnmarshalBinary's signature even names the []byte argument "text":

func (u *URL) UnmarshalBinary(text []byte) error

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions