Golang Obtenha o último elemento da fatia
// Go doesn't have negative indexing like Python does.
a := []string{"A", "B", "C"}
s := a[len(a)-1] // C
Grieving Gaur
// Go doesn't have negative indexing like Python does.
a := []string{"A", "B", "C"}
s := a[len(a)-1] // C
sl = sl[:len(sl)-1]