forked from ardanlabs/gotraining
-
Notifications
You must be signed in to change notification settings - Fork 0
/
template1.go
23 lines (16 loc) · 780 Bytes
/
template1.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// All material is licensed under the Apache License Version 2.0, January 2004
// http://www.apache.org/licenses/LICENSE-2.0
// Declare an array of 5 strings with each element initialized to its zero value.
//
// Declare a second array of 5 strings and initialize this array with literal string
// values. Assign the second array to the first and display the results of the first array.
// Display the string value and address of each element.
package main
// Add imports.
func main() {
// Declare an array of 5 strings set to its zero value.
// Declare an array of 5 strings and pre-populate it with names.
// Assign the populated array to the array of zero values.
// Iterate over the first array declared.
// Display the string value and address of each element.
}