func stringAtIndex(segments []string, idx int) string {
	if len(segments) > idx {
		return segments[idx]
	}
	return ""
}
// return string at index, or empty (prevent out of range)
return string at index, or empty (prevent out of range)
// return string at index or empty ( prevent out of range )
func stringAtIndex(segments []string, idx int) string {
	if len(segments) > idx {
		return segments[idx]
	}
	return ""
}
func stringAtIndex ( segments [ ] string , idx int ) string { if len ( segments ) > idx { return segments [ idx ] } return " " }
return string at index, or empty (prevent out of range)
return string at index or empty ( prevent out of range )