Created
December 2, 2019 02:35
-
-
Save yukpiz/db8454f60d87d05b8d820f2e5bfc3adb to your computer and use it in GitHub Desktop.
This file contains 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" | |
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