Vojtech Vitek (golang.cz)
Vojtech Vitek (golang.cz)
Hi, You could override `render.Decode` function with your own. Or, if #47 gets merged, you could override JSON decoder only. Imho, for most REST API use cases, people don't want...
@angelofallars would you like to take a look? It looks like the build tags in [path_value.go](https://github.com/go-chi/chi/blob/master/path_value.go) and [path_value_fallback.go](https://github.com/go-chi/chi/blob/master/path_value_fallback.go) introduced in https://github.com/go-chi/chi/pull/901 should account for tinygo too?
@rapropos Hi, `noempty` struct tag is not officially supported by Go's `json` pkg? What pkg are you using? Or did you mean `omitempty`? In this case, RIDL provides optional struct...
Optional field in RIDL https://github.com/webrpc/webrpc/blob/master/_examples/hello-webrpc/hello-api.ridl#L21C3-L21C26 generates `,omitempty` struct tag in Go https://github.com/webrpc/webrpc/blob/master/_examples/hello-webrpc/server/hello_api.gen.go#L86 which is what you're looking for. In JSON this will look like: ``` { "user": { "id": 20,...
> I guess I should probably look into a RIDL alternative No need to be defensive..
I just tried this: https://github.com/webrpc/webrpc/blob/master/_examples/hello-webrpc/hello-api.ridl#L26-L29 ``` - updatedAt?: timestamp + go.tag.json = ,omitempty - deletedAt?: timestamp ``` and it sends this JSON over the wire for `nil` fields: ``` {"user":{"id":966,"USERNAME":"hihi","deletedAt":null}}...
Closing since v3 was merged. https://github.com/go-chi/httplog/pull/52
@austinmilt Is there a primitive in Dart similar to JavaScript's BigInt? There's a proposal to use it at https://github.com/webrpc/webrpc/issues/143.
FYI, webrpc now supports `bigint` type.
Hi @intel352, it's quite unlikely we'd be changing the interfaces at this point unless they were fully backward-compatible. However, it might be useful if you could share 1) some (pseudo)...