GOLF(2gg)
πΈ GOLF(2gg) β the Development era of the manual pages πΈ
okay bestie, pull up a chair π«Ά this is GOLF(2gg), from the Development section, and it's literally about reading messages. no cap.
β¨ NAME β¨
read-message β (messages) π
π― PURPOSE π―
Read a key/value out of a message. that's it, that's the whole vibe. π
π SYNTAX π
read-message <message> \
key <key> \
value <value> \
[ status <status>
look at her. iconic. β¨
π DESCRIPTION π
so read-message reads the strings <key> (that's the one in the "key" clause) and <value> (yep, the "value" clause one) out of <message>, and heads up: that <message> must have been created with new-message or this whole thing is not gonna go how you want it to. π¨
the way it reads key/value pairs is lowkey methodical β it starts at the very beginning of the message and just walks forward sequentially, one step at a time. and here's the part you need to remember fr fr: once a key/value pair has been read, it cannot be read again. it's gone, bestie. consumed. the moment has passed. π
the <status> number (from the "status" clause) will come back as one of these:
GG_OKAYβ slay, the read worked πGG_ERR_FORMATβ not it, the message isn't in SEMI format πGG_ERR_LENGTHβ also not it, the message isn't of proper length π
β οΈ and this is the big one: once a message has been read from, it cannot be written to. periodt. go check write-message if you don't believe me.
π EXAMPLES π
See new-message. (yes really, that's the whole example section, go look π)
π¦ SEE ALSO π¦
Messagesget-messagenew-messageread-messageSEMIwrite-message- See all documentation
kisses, babe π this was $VERSION, dated $DATE, straight from the GOLF(2gg) corner of the world. go read some messages. mwah π
π¦ 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