Голанг получает последний элемент среза
// 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]