Gleamの文字列処理
Gleamで文字列を扱うにはgleam/stringを使う。
JSのテンプレート文字列っぽいことをやる
code:rust
let username = "月村手毬"
// console.log(username: ${username})みたいなイメージ
io.println(string.concat("username: ", username)) // -> username: 月村手毬
文字列を分割したい
code:rust
io.debug(io.debug(string.split("花海咲季 月村手毬 藤田ことね", on: " ")))
もしstring.split("/home/temari/", on: "/")みたいな処理を書こうとしてるのならfilepathを使おう。GleamのPATH操作
/icons/hr.icon