-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fdb8182
commit 477e230
Showing
1 changed file
with
29 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,30 @@ | ||
# LimaGoggles | ||
A lightweight golang app that can take a new line separated string of text and put it into the JSON Format expected by the LimaCharlie lookup gui | ||
A lightweight golang app that can take a new line separated string of text and put it into the JSON Format expected by the LimaCharlie lookup GUI. | ||
|
||
## Usage | ||
To use the app, run it from the command line, providing the path to the text file and the metadata string as arguments. | ||
|
||
``` | ||
./GoLineMetaFormatter <path-to-text-file> <metadata-string> | ||
``` | ||
## Example | ||
This will process sample.txt, associating each line in the file with "example-metadata" and output the result in JSON format. | ||
|
||
``` | ||
./GoLineMetaFormatter ./sample.txt "example-metadata" | ||
``` | ||
|
||
## Output Format | ||
|
||
The output will be in the following JSON format: | ||
``` | ||
{ | ||
"lineValue0": { | ||
"metadata": "metadata-string" | ||
}, | ||
"lineValue1": { | ||
"metadata": "metadata-string" | ||
}, | ||
// ... | ||
} | ||
``` |