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

Add strings.SkipLines function #1587

Merged
merged 1 commit into from
Dec 29, 2022
Merged

Add strings.SkipLines function #1587

merged 1 commit into from
Dec 29, 2022

Conversation

hairyhenderson
Copy link
Owner

New strings.SkipLines function - basically a bit of syntactic sugar over strings.SplitN

Signed-off-by: Dave Henderson [email protected]

Signed-off-by: Dave Henderson <[email protected]>
@apratinav-intuit
Copy link

@hairyhenderson

We tried installing gomplate using brew and realized gomplate version 3.11.4 does not have this yet.

# gomplate -i '{{ "foo\nbar\nbaz" | strings.SkipLines 2 }}'
09:14:12 ERR  error="failed to render template <arg>: template: <arg>:1:21: executing \"<arg>\" at <strings>: can't evaluate field SkipLines in type interface {}"

When can we expect the new release with this change.

Thanks

@hairyhenderson
Copy link
Owner Author

@apratinav-intuit correct - 3.11.4 was purely a patch release with no new functionality.

The next release will be v4.0.0, and I don't have a date estimate for that.

If you need this functionality immediately you can compile a binary from the main branch, or use the latest tag of the hairyhenderson/gomplate Docker image.

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

Successfully merging this pull request may close these issues.

2 participants