package main
import "log"
func main() { myMap := make(map[string]string)
myMap["dog"] = "Samson"
myMap["Dog"] = "Casey"
log.Println("My Dogs name is", myMap["dog"]+" and "+myMap["Dog"])
}
// var mySlice []string
func Slice() { var mySlice [ ]string mySlice = append(mySlice, "Apples") mySlice = append(mySlice, "Oranges") mySlice = append(mySlice, "Mangos")
log.Println(mySlice)
}
#####How to make a slice in Golang method 2 func Slice2() { fruits := []string{"Apples", "Oranges", "Mangos"} log.Println(fruits) }