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

config: add "format' function [GH-758] #1096

Merged
merged 2 commits into from
Mar 5, 2015
Merged

config: add "format' function [GH-758] #1096

merged 2 commits into from
Mar 5, 2015

Conversation

mitchellh
Copy link
Contributor

Fixes #758

This adds a format function. Docs:

  * `format(format, args...)` - Formats a string according to the given
      format. The syntax for the format is standard `sprintf` syntax.
      Good documentation for the syntax can be [found here](http://golang.org/pkg/fmt/).
      Example to zero-prefix a count, used commonly for naming servers:
      `format("web-%03d", count.index+1)`.

@tkak
Copy link
Contributor

tkak commented Mar 4, 2015

+1

@mitchellh
Copy link
Contributor Author

Gonna merge this @phinze, let me know if any objections.

mitchellh added a commit that referenced this pull request Mar 5, 2015
config: add "format' function [GH-758]
@mitchellh mitchellh merged commit 23609a7 into master Mar 5, 2015
@mitchellh mitchellh deleted the f-sprintf branch March 5, 2015 00:05
@phinze
Copy link
Contributor

phinze commented Mar 5, 2015

Belated LGTM 😁

@ghost
Copy link

ghost commented May 4, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators May 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sequence number format
3 participants