ps:今天开发刚好是用到,所以随手记了下来
func main() {
if find := strings.Contains("test-v1", "v1"); find {
fmt.Println("find the character.")
}
}
find the character.
版权声明:本文为baobaoxiannv原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。
ps:今天开发刚好是用到,所以随手记了下来
func main() {
if find := strings.Contains("test-v1", "v1"); find {
fmt.Println("find the character.")
}
}
find the character.