diff --git a/hello/main.go b/hello/main.go index 8ab932f..bdbf56f 100644 --- a/hello/main.go +++ b/hello/main.go @@ -5,5 +5,15 @@ import ( ) func main() { - fmt.Println("Hello from Go!") + var colors = [3]string{"Green", "red", "blue"} + /*colors[0] = "Red" + colors[1] = "Green" + colors[2] = "Blue"*/ + fmt.Println(colors) + fmt.Println(colors[0]) + var numbers = [5]int{5, 4, 8, 6, 1} + fmt.Println(numbers) + + fmt.Println("Number of colors :", len(colors)) + fmt.Println("Number of numbers :", len(numbers)) }