jmank88 / ubjson Goto Github PK
View Code? Open in Web Editor NEWGo package for working with Universal Binary JSON - http://ubjson.org/
License: MIT License
Go package for working with Universal Binary JSON - http://ubjson.org/
License: MIT License
Currently int
is returned. Does that make the method unusable for machines where int
< 64bits?
Support basic json
struct tags, and any relevant options (e.g. omitempty
).
Consider an option for alternate type encoding (e.g. tag a byte with 'C', rather than use a Char
type).
Keep an eye on the benchmarks - consider caching struct type info on the first run (fields, tags, counts, etc).
A command line program to generate Value
code for struct
s (tagged or not) would offer some benefits:
The simplest form might look like ubjsonvalue -type=CustomValue
, and be called on demand or from go:generate
.
Add some fuzz testing
@jmank88 I was wondering what your thoughts were on fields that are in the UBJSON object but not declared in the Go struct.
Currently, I see the error: unable to decode entry: no field found named/tagged ...
When I do the same test using encoding/json, the 'unknown' JSON field is consumed and discarded.
A use case is to implement forward compatibility with UBJSON messages.
I can add a failing test if you'd like.
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.