Skip to content

text/template: map key sorting should know about the sort interface #5020

@robpike

Description

@robpike
Now that reflect.SliceOf exists, it's conceivable that key sorting for maps in
text.Template could be craftier: if the a slice of key types is sortable, it could
promote to a sortable slice and sort them.

The user can do this by hand already, of course, but it might be nice to be automatic
about it. Low priority.

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