I have trivial question.
I have string which contains a filename and it's path. How can i remove whole path? I have tried those:
line = "/some/path/to/remove/file.name"
line := strings.LastIndex(line, "/")
fmt.Println(line)
It prints some strange number:
38
I need it without last slash
Thanks a lot
question from:
https://stackoverflow.com/questions/34527672/remove-path-from-filename 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…