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

Can't evaluate field Trunc in type *funcs.StringFuncs #347

Closed
estahn opened this issue Jun 12, 2018 · 2 comments
Closed

Can't evaluate field Trunc in type *funcs.StringFuncs #347

estahn opened this issue Jun 12, 2018 · 2 comments

Comments

@estahn
Copy link

estahn commented Jun 12, 2018

Command:

 gomplate -i '{{ "hello, world" | strings.Trunc 5 }}'

Error:

template: <arg>:1:20: executing "<arg>" at <strings>: can't evaluate field Trunc in type *funcs.StringFuncs
@hairyhenderson
Copy link
Owner

@estahn what version of gomplate? where was it installed from? My guess is that you're using an older version of gomplate, as strings.Trunc was only just recently added in version 2.6.0.

@estahn
Copy link
Author

estahn commented Jun 12, 2018

@hairyhenderson Well, on point as usual. I used 2.5.0. Updated and working. 👍

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

2 participants