Skip to content

text/template: Funcs accepts names with '-' but won't allow calling them #9685

@anacrolix

Description

@anacrolix

I've given a valid function but with a name containing '-'. Attempting to call it from a template:

panic: template: index.html:64: unexpected bad character U+002D '-' in command

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions