GOLF(2gg)

πŸ“¦ version 601.4.41, in ubuntu questing

✨ GOLF(2gg) ✨

okay bestie, welcome to the 2gg manual (that's the Development section, iykyk) πŸ’… buckle up, we're getting into get-message and it's lowkey iconic.


πŸŽ€ NAME πŸŽ€

get-message β€” it's giving (messages) πŸ¦‹


🌸 PURPOSE 🌸

Get the string that got produced when you were writing a message. that's it, that's the whole job, and she does it flawlessly πŸ’–


✨ SYNTAX ✨

get-message <message> to <string>

πŸ’… DESCRIPTION πŸ’…

So get-message will create a <string> out of <message>, and plot twist: that <message> must have been created with new-message first. no skipping steps, bestie πŸ™ˆ

Once you've got that <string>, she's free to go anywhere β€” send it off with a remote call (peep run-remote), write it to a file, whatever your heart desires. main character energy fr fr πŸ’œ

heads up though: the moment you call get-message, <message> gets initialized as if it was just created with new-message β€” but without the "from" clause. so yeah, she resets. no cap.

🌈 EXAMPLES 🌈

watch and learn, this is the good part ✨

// Create a message
new-message msg
// Write data
write-message msg key "key1" value "value1"
// Get string from message
get-message msg to str
...
// Create a new message from string
new-message new from str
// Read data
read-message new key k value v
// Display  data
print-format "[%s] [%s]\n", k,v

and the result? obsessed:

[key1] [value1]

ate. no crumbs. πŸ“


πŸ¦‹ SEE ALSO πŸ¦‹

  • Messages
  • get-message
  • new-message
  • read-message
  • SEMI
  • write-message
  • See all documentation

okay that's the whole page bestie, go forth and get those messages πŸ’–βœ¨

this lil masterpiece is version $VERSION, dated $DATE, and it lives in the GOLF(2gg) manual πŸŽ€ stay slaying, ily 🫢

πŸ“¦ where this page comes from