//how to delete the Number in Slice Golang
a := []int{10, 20, 30, 40, 50, 60, 70, 80, 90}
var i int
fmt.Print("Enter deleted number index..: ")
fmt.Scan(&i)
a = append(a[:i], a[i+1:]...)
fmt.Println(a)
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)