For example:
func test(requiredIp []int, i int) []int { requiredIp = append(requiredIp[0:i], requiredIp[i+1:]...) return requiredIp } func main(){