Skip to content

Instantly share code, notes, and snippets.

@yukpiz
Created December 2, 2019 02:35
Show Gist options
  • Save yukpiz/db8454f60d87d05b8d820f2e5bfc3adb to your computer and use it in GitHub Desktop.
Save yukpiz/db8454f60d87d05b8d820f2e5bfc3adb to your computer and use it in GitHub Desktop.
package main
import "fmt"
type ArrayInt []int
func main() {
var is []int
for i := 0; i < 10; i++ {
is = append(is, i)
}
var arr ArrayInt = is
for _, i := range arr {
fmt.Println(i)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment