5

rust 实现的golang 标准库的strings模块

 3 years ago
source link: https://studygolang.com/articles/35337
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

rust 实现的golang 标准库的strings模块

wandercn · 2天之前 · 114 次点击 · 预计阅读时间不到 1 分钟 · 大约8小时之前 开始浏览    

我用rust实现的golang的字符串处理标准库strings。 大家可以试试,有什么问题可以反馈。

fn main() {
    use gostd::strings;

    let s = vec!["foo", "bar", "baz"];

    assert_eq!("foo, bar, baz", strings::Join(s, ", "));
}

https://docs.rs/gostd/0.2.3/gostd/strings/index.html


有疑问加站长微信联系(非本文作者))

280

入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:701969077


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK