java中有SubString,那golang怎么截取字符串?
str := "hello world" fmt.Print(str[0:5])
以上代码输出 hello
数组,slice复制、截取都可以按这个操作