-
-
Notifications
You must be signed in to change notification settings - Fork 302
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 FMT function #106
Labels
area/stdlib
Standard library issue
good first issue
Good for newcomers
hacktoberfest
type/enhancement
New feature or request
Comments
ziflex
added
type/enhancement
New feature or request
good first issue
Good for newcomers
area/stdlib
Standard library issue
hacktoberfest
labels
Oct 12, 2018
It's possible to reuse parameters by their name using Go's templates. Ex {{ .P1 }} and {{ .P1 }} and {{ .P2 }} |
@3timeslazy you are right. Forgot about templates. Have never used them 🤔 |
@3timeslazy do you wanna take this one? |
@ziflex sure. |
As far as I understand, the signature of the FMT function is: func FMT(tmpl string, args ...core.Value) |
@3timeslazy yup, looks good! |
@3timeslazy hey, any updates on this? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area/stdlib
Standard library issue
good first issue
Good for newcomers
hacktoberfest
type/enhancement
New feature or request
Add
FMT(template, values)
function that would replace placeholders with given values.Example:
I think Rust implementation might be more useful for this project, than Go's one.
Especially, ability to reuse parameters using their indexes.
The text was updated successfully, but these errors were encountered: