Skip to content

text/template: method discovery #3544

@gopherbot

Description

@gopherbot

by tux21b:

The Go compiler automatically takes the address of a value V when a method is called
which is defined on a *V receiver. The "text/template" package should do the
same.

See the attached example for further details.

https://groups.google.com/d/msg/golang-nuts/eKSiPCAalMQ/O5JpDk8QpxUJ

Attachments:

  1. autodiscover.go (681 bytes)

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