Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot pass argument to struct method #53

Open
drlogout opened this issue Sep 1, 2021 · 0 comments
Open

Cannot pass argument to struct method #53

drlogout opened this issue Sep 1, 2021 · 0 comments

Comments

@drlogout
Copy link

drlogout commented Sep 1, 2021

Expected Behavior

{{ 'email' | errors.Get }}

Actual Behavior

syntax error in \"'email' | errors.Get\"

Detailed Description

I have an errors struct with a Get(string) []string method which I would like to use directly in the template. But I can't manage to pass an argument to that method.
Other methods without an argument work (e.g. Key() []string).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant