{"id":41754879,"url":"https://github.com/advincze/gen-files","last_synced_at":"2026-01-25T01:34:56.934Z","repository":{"id":57604995,"uuid":"82670641","full_name":"advincze/gen-files","owner":"advincze","description":null,"archived":false,"fork":false,"pushed_at":"2017-03-03T15:31:48.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-20T12:46:07.963Z","etag":null,"topics":["codegenerator","golang","template"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/advincze.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}},"created_at":"2017-02-21T11:10:56.000Z","updated_at":"2018-09-21T07:48:41.000Z","dependencies_parsed_at":"2022-09-13T01:33:53.392Z","dependency_job_id":null,"html_url":"https://github.com/advincze/gen-files","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/advincze/gen-files","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/advincze%2Fgen-files","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/advincze%2Fgen-files/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/advincze%2Fgen-files/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/advincze%2Fgen-files/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/advincze","download_url":"https://codeload.github.com/advincze/gen-files/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/advincze%2Fgen-files/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28740943,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T01:25:41.653Z","status":"ssl_error","status_checked_at":"2026-01-25T01:25:34.364Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["codegenerator","golang","template"],"created_at":"2026-01-25T01:34:56.149Z","updated_at":"2026-01-25T01:34:56.928Z","avatar_url":"https://github.com/advincze.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"gen-files\n=========\n\ncode generator that uses template files to create a code skeleton \n\n### install \nif you have [go](golang.org/dl) installed:\n```\n$ go get -u -v github.com/advincze/gen-files\n```\nyou'll find `gen-files` in `$GOPATH/bin/gen-files`\n\n### use\n\n```\n$ gen-files\n\nUsage of gen-files:\n  -config string\n    \tconfig file (required)\n  -index string\n    \tindex file (required)\n  -to string\n    \ttarget dir (required)\n```\n\nthe config file is a generic JSON file where you can store arbitratry configuration for \n\n```\n{\n\t\"foo\":\"bar\"\n}\n```\n\nthe index file contains the files to create:\n\n```\n{\n  \"files\": [\n    {\n      \"from\": \"foo/Hello.java\",\n      \"to\": \"{{ .foo }}/World.java\"\n    },\n    {\n      \"from\": \"foo/Hello.java\",\n      \"to\": \"{{ .foo }}2/World.java\"\n    },\n    { ...\n```\n\nthe template files and the names of the \"to\" paths can use go template syntax:\n\nhttps://golang.org/pkg/text/template/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadvincze%2Fgen-files","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadvincze%2Fgen-files","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadvincze%2Fgen-files/lists"}