solo-io / protoc-gen-ext Goto Github PK
View Code? Open in Web Editor NEWprotc-gen tools for solo-io
protc-gen tools for solo-io
By only including only the field value (and ignoring the field name) in the hasher, the following objects can collide:
collidableType {
a string
b string
}
first = collidableType {
a: "value"
}
second = collidableType {
b: "value"
}
Since properties a
and b
have the same type and value, when the hasher evaluates the first
and second
it will produce identical hashes, even though they are distinct.
When playing around with protoc-gen-ext v0.0.16
and using option (extproto.clone_all) = true;
, I've noticed an inconsitency from the generated object.Clone()
methods vs. the previously-used proto.Clone(object)
method. Specifically:
The nested field of UpstreamSpec.Selector
changed how it is cloned in the default case. Where previously no provided value --> clone would equate to nil
, now a clone generates an empty map: map[string]string{}
.
While not a breaking (or important) change at the moment, I'm documenting this, as there may be (as of now) unforeseen consequences to changing default map
values on clone.
Further (potentially better-written) context by @sam-heilbron: solo-io/gloo#5658 (comment)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.