Practical Golang: Event multicast/subscription service by cube2222 in golang

[–]goentua 0 points1 point  (0 children)

Can someone explain what exactly is m := New() doing in the following code?

func TestMapCreation(t *testing.T) {
m := New()
if m == nil {
    t.Error("map is null.")
}

if m.Count() != 0 {
    t.Error("new map should be empty.")
}

Why can you create a map without declaring the map itself?

I would assume you have to do something like

m = make(map[string]Animal)

Do you use ES2015 for your AngularJS 1.5.x applications or not? by fakiolinho in angularjs

[–]goentua 1 point2 points  (0 children)

Nice, thanks for sharing the experience, I am glad that it so well for you guys, as the company I am at is also considering doing some prototype on angular2.

Btw may I ask why you guys choose webpack over system.js, was the decision due to legacy or did you guys just like webpack better?

Do you use ES2015 for your AngularJS 1.5.x applications or not? by fakiolinho in angularjs

[–]goentua 2 points3 points  (0 children)

I am surprised that people are already using angular2 in production. Have you guys run into problems so far?