An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 9.0% on proxy.golang.org

proxy.golang.org : github.com/johnsiilver/prototools

Package prototools provide functions for performing reflection based operations on protocol buffers. These can be useful when extracting or updating proto fields based on field names. It should be noted that this package makes some assumptions and lacks certain features at the moment. The big assumption is how fields are named. Best practice says fields are lower_case_seperated_with_underscore. Enuerators are CAPITALS_WITH_A_LEADING_WORD_FOR_UNIQUENESS_WITH_UNDERSCORES. Many things here might not work as expected if you are not following these guidelines. There are two big things that we mostly ignore, maps and arrays. We just don't introspect them except where noted as that gets complicated and I don't need the capability at the moment. Finally, I am mostly ignoring all the "fixed" types, Any and whatever the types were before Any (my brain can't remember what those were called, I wouldn't even use them when I worked at Google, so not doing it here). This "may" work with OneOf's, but I haven't tried. You might ask yourself, why even bother if you don't do these? Well, most of the time for what this package will get used for, which is data exchange for web stuff, these things don't matter. Again, fits my purpose for the moment. If I need more complicated stuff, I'll add it at a later date.

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/johnsiilver/prototools
License: MIT
Latest release: almost 4 years ago
First release: almost 4 years ago
Namespace: github.com/johnsiilver
Stars: 0 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: about 2 months ago

    Loading...
    Readme
    Loading...