Skip to content

Instantly share code, notes, and snippets.

@GrimTheReaper
Created January 29, 2016 15:27
Show Gist options
  • Save GrimTheReaper/5b2738e96175c6a9090d to your computer and use it in GitHub Desktop.
Save GrimTheReaper/5b2738e96175c6a9090d to your computer and use it in GitHub Desktop.
package main
import "fmt"
func main() {
a := []string{"arrays", "are", "go away", "fun"}
i := 2
a = append(a[:i], a[i+1:]...)
fmt.Println(a)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment