package main
import "fmt"
func main() {
var str0 map[string]string
fmt.Println(str0)
if str0==nil{
fmt.Println("str0 is nil")
}
//str0["hello"]="world"
str1 := make(map[string]string)
fmt.Println(str1)
if len(str1)==0{
fmt.Println("str1 is string empty")
}
str1["hello"]="world"
fmt.Println("str1:",str1)
str2 := map[string]string{
"hello":"world",
}
if len(str2)!=0{
fmt.Println("str2:",str2)
}
}
map[]
str0 is nil
map[]
str1 is string empty
str1: map[hello:world]
str2: map[hello:world]