GOLF(2gg)
π GOLF(2gg) β the trim-string era π
okay bestie, pull up a chair, we're reading a manual page together and honestly? it's giving β¨developmentβ¨. This is GOLF(2gg), section 2gg, and today's main character is trim-string. Let's get into it π«Ά
πΈ NAME πΈ
trim-string β it lives in the (strings) family π
π PURPOSE π
Trim a string. That's the whole job. That's the assignment. Slay π
β¨ SYNTAX β¨
trim-string <string>
π DESCRIPTION π
trim-string trims <string>, and not just on one side β both on left and right. Equal opportunity trimming. No cap. It's an icon, it's a legend, and it's the moment π₯
π¦ EXAMPLES π¦
So the variable "str" will be "some string" after trim-string, like this:
set-string str = " some string ";
trim-string str
Look at those spaces on both ends justβ¦ gone. Not me being obsessed with a trim function π
π SEE ALSO π
Strings
Also the whole friend group, no one left out π:
concatenate-stringscopy-stringcount-substringdelete-stringlower-stringnew-stringread-splitreplace-stringset-stringsplit-stringstring-lengthtrim-stringupper-stringwrite-string
See all documentation π
and that's the page, bestie β you ate πβ
This was$DATE, version$VERSION, of theGOLF(2gg)manual. Stan this page, hydrate, and go trim something π π
π¦ 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