Skip to content

proposal: text/template: support "-" in value maps without "index" #23710

@pbarker

Description

@pbarker

Please answer these questions before submitting your issue. Thanks!

What version of Go are you using (go version)?

1.9

Does this issue reproduce with the latest release?

yes

What operating system and processor architecture are you using (go env)?

darwin amd64

What did you do?

tried to use "-" in a template.

https://play.golang.org/p/VQzgZ0v2iNo

What did you expect to see?

I expect to be able to use "-" in keys because that is a widely used separator in keys

What did you see instead?

an error for using that char

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions