set
hujson
Our great sponsors
set | hujson | |
---|---|---|
5 | 10 | |
46 | 563 | |
- | 2.1% | |
3.2 | 0.0 | |
almost 2 years ago | 6 months ago | |
Go | Go | |
MIT License | BSD 3-clause "New" or "Revised" License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
set
-
what is this format called and would it be possible to create my own (back tics)
You might want to look at https://github.com/nofeaturesonlybugs/set
-
set v0.5.0 - struct mapping & population, type coercion, and slice building reflect wrapper
I have just released v0.5.0 of package set available @ https://github.com/nofeaturesonlybugs/set
-
Unmarshal text with Go reflection - usage and internals of a library for line-oriented text
Sorry for two replies but I ran my TypeInfo benchmarks with and without caching if you're interested in also sharing the impact. The benchmarks are in https://github.com/nofeaturesonlybugs/set/blob/master/type_info_test.go
-
Can you recommend open source projects with small codebase, but with high benefits for learning?
It's generally not well received to use reflect to step around Go's type system but there are also instances where the type system starts to violate DRY. I've put together a small package that uses reflect to work some magic on types @ https://github.com/nofeaturesonlybugs/set
hujson
- JSON for Humans (JWCC: JSON with comments and trailing commas)
-
Ron: Rusty Object Notation
That, and comments!
Personally, I really hope Human JSON, https://github.com/tailscale/hujson , will take over!
-
Unmarshal text with Go reflection - usage and internals of a library for line-oriented text
I also like the approach that the hujson library takes, where everything is a type Literal []byte and you can call (Literal).Bool(), (Literal).String(), (Literal).Int() or (Literal).Float() on it and it gives you the corresponding value out of it (or the zero value). So kinda like dynamic variables that can store anything.
-
Internet Object – A JSON alternative data serialization format
One of the variants that permit comments: https://github.com/tailscale/hujson
- HuJSON - JSON for Humans (comments and trailing commas)
- Tailscale/hujson: HuJSON: JSON for Humans (comments and trailing commas)
What are some alternatives?
wireguard-go - Mirror only. Official repository is at https://git.zx2c4.com/wireguard-go
zed - A novel data lake based on super-structured data
booster - Fast and secure initramfs generator
jsonschema-key-compression - Compress json-data based on its json-schema while still having valid json
trie - Data structure and relevant algorithms for extremely fast prefix/fuzzy string searching.
Dixy - Data format based on dictionaries
tunl - Instantly expose local services to the internet
simdjson - Parsing gigabytes of JSON per second : used by Facebook/Meta Velox, the Node.js runtime, ClickHouse, WatermelonDB, Apache Doris, Milvus, StarRocks
hyperloglog - HyperLogLog with lots of sugar (Sparse, LogLog-Beta bias correction and TailCut space reduction) brought to you by Axiom
json5 - JSON5 — JSON for Humans
proposal-json-superset - Proposal to make all JSON text valid ECMA-262
insta - A snapshot testing library for rust