Randy Reddig

Results 164 comments of Randy Reddig

We implemented this on top of httprouter here: https://github.com/nbio/hitch It uses per-request contexts from: https://github.com/nbio/httpcontext

We recently did some work to port a project from GoGo Protobuf to the v2 API. Aside from `gogoproto.nullable` (which we use quite a bit, in particular with WKTs), the...

> > * Struct tags: [golang/protobuf#52](https://github.com/golang/protobuf/issues/52) > > @ydnar after years of wishfully waiting for struct tags, it seems now that golang/protobuf has decided not to implement this feature :(...

> I’ll share what we have when we have something working for (at least) our use cases. Progress update: we now have a working `protoc-gen-go-patch` tool that does what I...

> @ydnar could you give an example of how users specify the tags, names, etc? > > > > Is it also using the protobuf extensions, like https://github.com/srikrsna/protoc-gen-gotag and gogoprotobuf...

> I hope that customtype is not necessary, but do you think casttype would be possible? Good question. Modifying a basic type in an AST should be straightforward. More than...

Progress: - [x] Support `oneof` fields. - [x] Rename `enum` values when `enum` is renamed. - [x] Rename `oneof` fields and synthesized types/methods when parent `message` is renamed. - [x]...

I pushed an early build of `protoc-gen-go-patch` here: https://github.com/alta/protopatch YMMV, but it works for us. TODO: tests, GoGo shim, more features.

Update: https://github.com/alta/protopatch has a new—arguably less simple, but easier to extend—API: - `go.message.options` — message options, which modify the generated Go struct for a message. - `go.field.options` (also aliased to...

I have an initial spike on a GoGo compatibility shim, with support for one extension (`gogoproto.customname`). Having gone through this exercise, I’m not sure the juice is worth the squeeze....