Last active
May 14, 2017 18:42
-
-
Save theharveyz/e43ea49987d547801e7308095a5874d7 to your computer and use it in GitHub Desktop.
slice remove node
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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