2021年12月20日

go 字符串操作相关

摘要: Go语言字符串相关操作 1. 判断字符串开头 package main import ( "fmt" "strings" ) func main() { myString := "www.topgoer.com" // Option 1: (Recommended) if strings.HasPr 阅读全文

posted @ 2021-12-20 14:41 星河赵 阅读(43) 评论(0) 推荐(0) 编辑

导航