- 16 Aug, 2021 1 commit
-
-
tavit ohanian authored
-
- 29 Jul, 2021 1 commit
-
-
tavit ohanian authored
-
- 25 Aug, 2020 1 commit
-
-
Daniel Martí authored
There were two vet errors in two packages containing tests, resulting in 'go test' erroring out before any tests were run. Both were due to the same reason - an Error method that ends up calling itself forever, thus a panic. While at it, 'gofmt -w -s' everything, which removes a redundant type.
-
- 10 May, 2020 2 commits
-
-
Eric Myhre authored
The first two example fixtures of what I wanted to achieve pass now :3 That's exciting.
-
Eric Myhre authored
See the package docs in 'jst.go' for introduction to what and why; tldr: I want pretty and I want JSON and I want them at the same time. I'm putting this in the codec package tree because it fits there moreso than anywhere else, but it's probably not going to be assigned a multicodec magic number or anything like that; it's really just JSON. This code doesn't *quite* pass its own fixture tests yet, but nearly. I thought this would be a nice checkpoint because the only thing left is dealing with the fiddly trailing-comma-or-not bits. This first pass also completely ignores character encoding issues, the correct counting of graphemes, and so forth; those are future work. Most configurability is also speculative for 'first draft' reasons. All good things in time. This is something of a little hobby sidequest. It's not particularly related to the hashing-and-content-addressing quest usually focused. Accordingly, as you may be able to notice from some of the comments in the package documentation block, I did initially try to write this over in the refmt repo instead. However, I got about 20 seconds in on that effort before realizing that our Node interface here would be a wildly better interface to build this with. Later, I also started realizing Selectors would be Quite Good for other forms of configuration that I want to add to this system... so, it's rapidly turning into a nice little exercise for other core IPLD primitives! Yay! Copacetic.
-