https://github.com/golang/go/issues/25328
just for a demo
func main() { cfgs := "mongodb://off" cfgs = strings.TrimLeft(cfgs,"mongodb://") fmt.Printf("cfgs:%v\n",cfgs) //output ==> cfgs:ff }
https://github.com/golang/go/issues/25328
just for a demo
func main() { cfgs := "mongodb://off" cfgs = strings.TrimLeft(cfgs,"mongodb://") fmt.Printf("cfgs:%v\n",cfgs) //output ==> cfgs:ff }