GOLF(2gg)
β¨ 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 callget-message,<message>gets initialized as if it was just created withnew-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-messagenew-messageread-messageSEMIwrite-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
- ubuntu questing: golf 601.4.41-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms