Skip to content

Instantly share code, notes, and snippets.

@zgiber
Created March 12, 2015 15:20
Show Gist options
  • Save zgiber/79955d3f59224609144a to your computer and use it in GitHub Desktop.
Save zgiber/79955d3f59224609144a to your computer and use it in GitHub Desktop.
package main
import "fmt"
func main() {
var i interface{}
i = 3.456
fmt.Println("Hello, playground", i == 3.456)
list := []int{1,2,3,4,5,6}
bad := []int{0,3,5}
for i, index := range bad {
list = append(list[:index-i], list[index-i+1:]...)
}
fmt.Println(list)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment