golang中的字符串操作strings.TrimLeft
package main
import (
"fmt"
"strings"
)
//golang字符串操作
func main(){
s := "Hello world hello world"
str := "Hello"
//var s = []string{"11","22","33"}
//删除s头部连续的包含在str中的字符串
ret := strings.TrimLeft(s,str)
fmt.Println(ret) // world hello world
}