In general, how can I get the last element of an array or a slice?
In particular, after split a string, how can I get the last element?
info := strings.Split("a=1,b=2,c=3,d=4", ",")
lastInfo := info[len(info)-1]
detail := strings.Split(lastInfo, "=")
seems a little awkward ...