Skip to content

time: want Time.Format variant to not generate garbage #5192

@bradfitz

Description

@bradfitz
I want a version of time.Format that can either append to a []byte (like
http://golang.org/pkg/strconv/#AppendInt and friends) or write to an io.ByteWriter.

Generating the Date headers in the HTTP server is one of a dozen remaining sources of
garbage. I don't want a string.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions