{"id":34130513,"url":"https://github.com/edsonhtj/jtos","last_synced_at":"2026-05-28T08:31:51.512Z","repository":{"id":195138243,"uuid":"692294103","full_name":"EdsonHTJ/jtos","owner":"EdsonHTJ","description":"A Tool to generate golang structures based on json examples","archived":false,"fork":false,"pushed_at":"2023-10-27T04:29:00.000Z","size":2591,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-17T11:15:42.233Z","etag":null,"topics":["go","golang","json"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/EdsonHTJ.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-09-16T03:33:31.000Z","updated_at":"2023-11-24T02:14:35.000Z","dependencies_parsed_at":"2023-09-26T17:48:48.155Z","dependency_job_id":null,"html_url":"https://github.com/EdsonHTJ/jtos","commit_stats":null,"previous_names":["edsonhtj/jtos"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/EdsonHTJ/jtos","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EdsonHTJ%2Fjtos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EdsonHTJ%2Fjtos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EdsonHTJ%2Fjtos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EdsonHTJ%2Fjtos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EdsonHTJ","download_url":"https://codeload.github.com/EdsonHTJ/jtos/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EdsonHTJ%2Fjtos/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33601380,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-28T02:00:06.440Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["go","golang","json"],"created_at":"2025-12-15T00:33:13.374Z","updated_at":"2026-05-28T08:31:51.507Z","avatar_url":"https://github.com/EdsonHTJ.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"Copy code\n# [jtos](https://github.com/EdsonHTJ/jtos)\n\n`jtos` is a command-line application for processing json input files and generating the struct code for the chosen language. Currently, only Go is supported as a language generator.\n\n## Prerequisites\n\n- Go (version 1.21 or newer)\n\n## Installation\n\nBefore you can use `jtos`, you need to install it. The currently only installation possible is through go install:\n\n```\ngo install github.com/EdsonHTJ/jtos/cmd/jtos@latest\n```\n\n## Usage\n\n### Basic Usage\n\n```\njtos [path/to/input/file]\n```\n\nWith the basic usage, the input file is taken from the argument, and the output file defaults to a directory and file named after the input filename without its extension. The generator defaults to \"go\".\n\n### Advanced Usage\n\n```\njtos --input=\"path/to/input/file\" --out=\"path/to/output/file\" --gen=\"generator_type\"\n```\n\n- `-g, --gen string`: The generator type to use. (default \"go\")\n- `-h, --help`: Help for jtos.\n- `-o, --out string`: Path to the output directory. (default \"./\")\n- `-p, --package string`: Name of the output package.\n- `-s, --struct string`: Name of the output structure.\n\nFor example, for an input file at `/etc/lib/test.txt`, the default output will be `test/test.go`.\n\n### Examples\n\n```bash\njtos example.json\n# Output will be in example/example.go\n```\n\n```bash\njtos --input=sample.json --out=output/path --package=samplePkg --struct=SampleStruct\n# Adjusted output, package name, and struct name.\n```\n\n## Contribution\n\nContributions are welcome! Please create an issue or open a pull request if you have changes or improvements.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedsonhtj%2Fjtos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedsonhtj%2Fjtos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedsonhtj%2Fjtos/lists"}