News for hackers. Stuff that matters.
Re:Show HN: CandyJS – transparent bridge between Go and Java... by manucorporat on Tuesday June 16, 2015 @05:48AM (#9724714)
cool! why and how are the Go methods called with camelcase names?

  var engine = gin.default();
  engine.get("/back", CandyJS.proxy(function(ctx) {
    var future = time.date(2015, 10, 21, 4, 29 ,0, 0, time.UTC);
    var now = time.now();

    ctx.json(200, {
      future: future.string(),
      now: now.string(),
      nsecs: future.sub(now)
    });
  }));
Re:Show HN: CandyJS – transparent bridge between Go and Java... by mcuadros on Tuesday June 16, 2015 @05:54AM (#9724743)
the method and field names are converted to lowerCamelCase to be compliant with the JS coding style. Let's see if this transformation becomes a headache.

BTW this behaviour is undocumented, I will fix that.

Re:Show HN: CandyJS – transparent bridge between Go and Java... by manucorporat on Tuesday June 16, 2015 @06:09AM (#9724793)
got it!