Skip to content

text/template: eq nil 0 returns bad comparison #45982

@rsc

Description

@rsc

Using the built-in eq to compare a nil interface and a non-nil value fails but should not.
(It is reasonable to check given x interface{} whether x == 1.)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions