Created
January 6, 2021 21:16
-
-
Save jonathan-fielding/28d60a333e4736aa9a848521cf8f02d0 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" | |
func main() { | |
arr := [5]string{"apple", "banana", "cherry", "dates", "elderberry"} | |
for i := 0; i < len(arr); i++ { | |
fmt.Println(i, arr[i]) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment