-
Notifications
You must be signed in to change notification settings - Fork 274
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(syntax/stdlib): add
base64_decode
helper function (#953)
* feat(syntax/stdlib): add `base64_decode` helper function Signed-off-by: hainenber <[email protected]> * doc: correct title for `base64_decode` func ref Signed-off-by: hainenber <[email protected]> * chore: use a generic string for `base64_decode` code example Signed-off-by: hainenber <[email protected]> --------- Signed-off-by: hainenber <[email protected]>
- Loading branch information
Showing
4 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
canonical: https://grafana.com/docs/alloy/latest/reference/stdlib/base64_decode/ | ||
description: Learn about base64_decode | ||
title: base64_decode | ||
--- | ||
|
||
# base64_decode | ||
|
||
The `base64_decode` function decodes a RFC4648-compliant Base64-encoded string | ||
into the original string. | ||
|
||
`base64_decode` fails if the provided string argument contains invalid Base64 data. | ||
|
||
## Examples | ||
|
||
``` | ||
> base64_decode("dGFuZ2VyaW5l") | ||
tangerine | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters