Tony.Chen

Results 49 comments of Tony.Chen

这个会导致log性能变差,不太建议再做一次对象

The main reason that `encoding/json` is not used is because `google/protobuf/duration.proto`, `int64(string)` and `oneof` marshal are inconsistent with the standard library JSON and there is no good solution. https://developers.google.com/protocol-buffers/docs/proto3#json

I want to use encoding/json. Can I implement MarshalJSON and UnmarshalJSON interfaces for known types? `https://github.com/protocolbuffers/protobuf-go/tree/master/types/known`

Are there any current plans for this optimization?

We need to convert ent error to framework error, like this:: ```go client.Use(func(next ent.Mutator) ent.Mutator { return ent.MutateFunc(func(ctx context.Context, m ent.Mutation) (ent.Value, error) { v, err := next.Mutate(ctx, m) return...

I'm using `cmake_external` to compile rocksdb and get this error ``` : error: 'redacted' was not declared in this scope : note: in expansion of macro 'redacted' note: in expansion...

```protobuf enum Status { UP, DOWN } message HealthRequest { string service = 1; } message HealthReply { Status status = 1; } service Health { rpc HealthCheck (HealthRequest) returns...

```go type Checker interface { Check(ctx context.Context) error } type CheckerFunc func() error func (f CheckerFunc) Check(ctx context.Context) error { return f() } type Health struct {} func (h *Health)...