Skip to content

Instantly share code, notes, and snippets.

@theharveyz
Last active May 14, 2017 18:42
Show Gist options
  • Save theharveyz/e43ea49987d547801e7308095a5874d7 to your computer and use it in GitHub Desktop.
Save theharveyz/e43ea49987d547801e7308095a5874d7 to your computer and use it in GitHub Desktop.
slice remove node
package main
import (
"fmt"
)
func main() {
s := []int{1,2,3,4,5}
nodes := append(s[:index], s[(index+1):]...)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment