DEV Community 👩‍💻👨‍💻


Posted on

how to delete the Element in slice using Slice Golang

//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..: ")
    a = append(a[:i], a[i+1:]...)
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

Super Useful CSS Resources

A collection of 70 hand-picked, web-based tools which are actually useful.
Each will generate pure CSS without the need for JS or any external libraries.