Skip to content

proposal: net/url: implement TextMarshaler/TextUnmarshaler interfaces for url.URL #52638

@YaroslavDev

Description

@YaroslavDev

In order to be able to pass url.URL variable to flag.TextVar(&url, ...), url.URL type must implement encoding.TextMarshaler and encoding.TextUnmarshaler interfaces.
This approach was suggested here instead of making a dedicated flag.URLVar function in flag package.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions