GOLF(2gg)

πŸ“¦ version 601.4.41, in ubuntu questing

πŸ’– GOLF(2gg) πŸ’–

okay bestie, welcome to the GOLF(2gg) manual page ✨ this is the development corner of the golf docs and today's main character is decode-base64. buckle up πŸŽ€


✨ NAME ✨

decode-base64 β€” it's giving (base64) πŸ’…


🎯 PURPOSE ✨

Base64 decode. that's it, that's the whole vibe πŸ¦‹


🩷 SYNTAX 🩷

decode-base64 <data> to <output data> \
    [ input-length <input length> ]

πŸ’« DESCRIPTION πŸ’«

okay so decode-base64 takes the string <data> and decodes it into <output data>, and lowkey the glow-up is real because <output data> can absolutely be a binary string πŸ’–

if the input-length clause is used, then <input length> is the number of bytes decoded. no input-length? then the entirety of <data> gets decoded, periodt 🌸

the result is stored in <output data> (in the to clause). no cap πŸ‘‘

and now the detail that saves your whole life, bestie: the string you're decoding can have whitespaces before it (like spaces or tabs, we love a dramatic entrance πŸ™ˆ) and whitespaces and new lines after it, and all of those get straight-up ignored for the purpose of decoding. iconic behaviour, honestly 🧚

🌈 EXAMPLES 🌈

See encode-base64. go peek, i'll wait πŸ“


πŸ”₯ SEE ALSO πŸ”₯

  • Base64
  • decode-base64
  • encode-base64
  • See all documentation

that's the whole page bestie, slay πŸ’… this one came from the $VERSION era and it's dated $DATE β€” GOLF(2gg), always and forever πŸ‘‘πŸ’–βœ¨

πŸ“¦ where this page comes from