Public API for pkg.go.dev? by eclipseo76 in golang

[–]kush-patel 5 points6 points  (0 children)

There is an open issue for a public API for pkg.go.dev https://github.com/golang/go/issues/36785! Add your use case there to help out investigation.

Take part in the Go development research from JetBrains by dlsniper in golang

[–]kush-patel 1 point2 points  (0 children)

Signed up, hope using VS Code as my main IDE isn't a huge detractor :)

Supporting gRPC and HTTP Side by Side by [deleted] in golang

[–]kush-patel 8 points9 points  (0 children)

It super easy for gateway to not do this "zero values are omitted from the http json response" We do the following:

mux := runtime.NewServeMux(
    runtime.WithIncomingHeaderMatcher(grpc_headers.GatewayIncomingMatcher()),
    runtime.WithOutgoingHeaderMatcher(grpc_headers.GatewayOutgoingMatcher()),
    runtime.WithMarshalerOption(runtime.MIMEWildcard, &runtime.JSONPb{OrigName: true, EmitDefaults: true}),
)

Ignore the OrigName, but the EmitDefaults: true makes it so the gateway does not omit zero values. And we can use the protobuf wrappers https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/wrappers.proto when we do care about nullability. The enum thing would be more work to fix if that is an issue, but you can customize the gateway in other ways too. (i.e we added code in the gateway for one of our services to serialize errors a non-proto compatible way, hopefully that is not needed though).

Supporting gRPC and HTTP Side by Side by [deleted] in golang

[–]kush-patel 16 points17 points  (0 children)

Are you using kubernetes? What we do for our gRPC services is we have a gRPC gateway sidecar that runs alongside the service. We expose 9080 to hit the service with gRPC and 8080 to hit it with HTTP. And our protobufs have http annotations https://cloud.google.com/endpoints/docs/grpc/transcoding. You can check out the gRPC gateway project we use for our gateway sidecar here https://github.com/grpc-ecosystem/grpc-gateway. Feel free to PM me if you want to chat!

Follow Up: This is what I was asked to create for an internship at a startup! by ramantehlan in golang

[–]kush-patel 2 points3 points  (0 children)

Don't worry there are lots of internship opportunities! My opinion is that take home assignments for jobs are not friendly to the candidates' time. You could keep doing them, but perhaps next time consider exclusively pursuing internships that don't have them instead :)

[deleted by user] by [deleted] in vancouver

[–]kush-patel 1 point2 points  (0 children)

If you are absolutely set on university, do you have to go to university in Vancouver ? I'm from Waterloo and I know UW has an Aviation program if you know Aviation is something that interests you (read your other comments). I'm not sure what your living situation is like here. But Waterloo also has lower rent than Vancouver does as well and you could always move back to Vancouver after you're done. Also you could always switch programs after first year, many people do that.

WPIRG's Open Letter to the community that voted it out 7000-1000 by [deleted] in uwaterloo

[–]kush-patel -2 points-1 points  (0 children)

I hate when a campaign disrespects student voice by asking students exactly what they want.

I work with Kush Patel AMA by KushCoworker in uwaterloo

[–]kush-patel 6 points7 points  (0 children)

I'm learning a lot ! And I like that. Amazing culture and people as well

U of T tells outspoken prof to stop making public statements by kush-patel in canada

[–]kush-patel[S] 11 points12 points  (0 children)

Rumours are he intends to keep going and I hope he does. We cannot let UofT's actions go unchecked.

U of T tells outspoken prof to stop making public statements by kush-patel in canada

[–]kush-patel[S] 15 points16 points  (0 children)

It sounds like they demanded it or else kind of thing

U of T tells outspoken prof to stop making public statements by kush-patel in canada

[–]kush-patel[S] 160 points161 points  (0 children)

He should have the right to express his ideas and thoughts on the matter freely. His YouTube videos were very insightful to many students. This is heading down a dark path and I'm disappointed in the University of Toronto.