-
Notifications
You must be signed in to change notification settings - Fork 243
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
feat: Add new stdlib functions #2199
Conversation
syntax/internal/stdlib/stdlib.go
Outdated
"from_yaml": yamlDecode, | ||
"from_base64": base64Decode, | ||
"to_base64": base64Encode, | ||
"to_URLbase64": base64URLEncode, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should there be an appropriate from_urlbase64?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have added the same makes sense since to have decode when we have the encode
The `encoding.to_base64` function encodes a string to RFC4648-compliant base64 string | ||
into the original string. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The `encoding.to_base64` function encodes a string to RFC4648-compliant base64 string | |
into the original string. | |
The `encoding.to_base64` function encodes a string to an RFC4648-compliant Base64 string into the original string. |
The wording here seems awkward. I'm not sure how to phrase it so it's still technically correct. @mattdurham could we say something along the lines of The `encoding.to_base64` function encodes a string to an RFC4648-compliant Base64 string and writes it into the original string.
? Or does it overwrite the original string? Or something else?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I hope the new verbal change makes sense.
04f4c95
to
0c033b1
Compare
Hi Team, I have addressed the review comments please take a look. |
Co-authored-by: Clayton Cornell <[email protected]>
Co-authored-by: Clayton Cornell <[email protected]>
Co-authored-by: Clayton Cornell <[email protected]>
Addressed the commit suggestions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving for doc input. It will still need code review @mattdurham
LGTM thanks for the PR! |
PR Description
Adds two new stdlib functions to_base64 and to_URLbase64
Which issue(s) this PR fixes
#2048
Notes to the Reviewer
PR Checklist