Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
gop / usr / lib / gop / printer / _testdata / 07-MapLit / maplit.gop
Size: Mime:
x := {"Hello": 1, "xsw": 3.4} // map[string]float64
println("x:", x)

y := {"Hello": 1, "xsw": "Go+"} // map[string]interface{}
println("y:", y)

println({"Hello": 1, "xsw": 3}) // map[string]int
println({1: 1.4, 3: "Go+"})     // map[int]interface{}

println("empty map:", {}) // map[string]interface{}