https://github.com/rjkroege/jstream
https://github.com/rjkroege/jstream
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/rjkroege/jstream
- Owner: rjkroege
- Created: 2023-06-14T17:08:25.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-14T17:09:01.000Z (over 2 years ago)
- Last Synced: 2025-02-27T09:09:37.880Z (9 months ago)
- Language: Go
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
` jstream` is a simple tool that creates a JSON version of a
relational join
over the input files
An example will clarify. Given files letters and numbers (i.e. the
ones checked into the repository) Then:
```
./jstream Numbers numbers Letters letters
```
will create an output JSON file that looks like this:
```
[
{
"Letters": "a",
"Numbers": "1"
},
{
"Letters": "b",
"Numbers": "2"
},
{
"Letters": "c",
"Numbers": "3"
}
]
```
Note how we end up with an array of objects, each object has the keys
`Letters` and `Numbers` that correspond to the command line argument
while the values of the keys in the array correspond to the lines read
from the input files.