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

Relax inputs for many functions #293

Merged
merged 1 commit into from
Apr 19, 2018
Merged

Relax inputs for many functions #293

merged 1 commit into from
Apr 19, 2018

Conversation

hairyhenderson
Copy link
Owner

This relaxes the input types required for many functions where previously a string or int64 was explicitly required. This is mainly for the use-case where functions need to be able to participate in a pipeline that doesn't produce exactly the right input.

This will now work, for example:

$ gomplate -i '{{ conv.Bool 1 }} {{ time.Second "15" }}'
true 15s

Signed-off-by: Dave Henderson dhenderson@gmail.com

Signed-off-by: Dave Henderson <dhenderson@gmail.com>
@hairyhenderson hairyhenderson self-assigned this Apr 19, 2018
@hairyhenderson hairyhenderson merged commit 308a2f3 into master Apr 19, 2018
@hairyhenderson hairyhenderson deleted the relax-inputs branch April 19, 2018 03:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant