We had a discussion of this in the code review field guide.


2013/6/26 juliusv <notifications@github.com>

> In extraction/processor0_0_2.go:
>
> > @@ -23,7 +23,7 @@ import (
> >
> >  // Processor002 is responsible for decoding payloads from protocol version
> >  // 0.0.2.
> > -var Processor002 = &processor002{}
> > +var Processor002 = new(processor002)
>
> Are we switching to new() now? We have ...{} everywhere else in the
> Prometheus code base and it feels more idiomatic to me, at least.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/prometheus/client_golang/pull/21/files#r4896261>
> .
>