import ("strings") ; strings.Split("example.txt", ".")
for strings.Split("ex.txt", "."), I want txt
This question suggests that doing
strings.Split("ex.txt", ".")[len(strings.Split("ex.txt", ".")) - 1]
-1
Split
Thank you!
import ("strings") ; strings.Split("example.txt", ".")
for strings.Split("ex.txt", "."), I want txt
This question suggests that doing
strings.Split("ex.txt", ".")[len(strings.Split("ex.txt", ".")) - 1]
-1
Split
Thank you!