{"id":17654579,"url":"https://github.com/jpbruinsslot/template","last_synced_at":"2025-06-16T22:32:57.215Z","repository":{"id":32042312,"uuid":"35613811","full_name":"jpbruinsslot/template","owner":"jpbruinsslot","description":"Use environment variables and .env files in Go templates.","archived":false,"fork":false,"pushed_at":"2023-04-07T09:03:14.000Z","size":2415,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-30T09:26:30.760Z","etag":null,"topics":["cli","dotenv","environment-variables","go","golang","template","templates"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jpbruinsslot.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}},"created_at":"2015-05-14T13:51:44.000Z","updated_at":"2025-03-12T12:05:07.000Z","dependencies_parsed_at":"2022-08-24T16:21:13.139Z","dependency_job_id":null,"html_url":"https://github.com/jpbruinsslot/template","commit_stats":{"total_commits":16,"total_committers":1,"mean_commits":16.0,"dds":0.0,"last_synced_commit":"58e1b701533bd460674f1f49a28c628350927a46"},"previous_names":["erroneousboat/template"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/jpbruinsslot/template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpbruinsslot%2Ftemplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpbruinsslot%2Ftemplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpbruinsslot%2Ftemplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpbruinsslot%2Ftemplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jpbruinsslot","download_url":"https://codeload.github.com/jpbruinsslot/template/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpbruinsslot%2Ftemplate/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260251772,"owners_count":22981124,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["cli","dotenv","environment-variables","go","golang","template","templates"],"created_at":"2024-10-23T12:35:05.428Z","updated_at":"2025-06-16T22:32:57.188Z","avatar_url":"https://github.com/jpbruinsslot.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"Template\n========\n\nUse environment variables in Go templates.\n\nInstallation\n------------\n\n#### Binary installation\n\n[Download](https://github.com/jpbruinsslot/template/releases) a\ncompatible binary for your system. For convenience, place `template` in a\ndirectory where you can access it from the command line.\n\n#### Via Go:\n\n```\n$ go get -u github.com/jpbruinsslot/template\n```\n\nUsage\n-----\n\n#### Command line usage:\n\n```\nNAME:\n    template - use environment variables and data files (like .env) in Go templates\n\nUSAGE:\n    template -t [template-file] -o [output-file] -d [data-file]\n\nEXAMPLES:\n\n    # Use system wide environment variables\n    $ template -t input.tpml -o output.txt\n    $ template -t input.tmpl \u003e output.txt\n\n    # Use data files (support for env and json files)\n    $ template -t input.tpml -o output.txt -d data.env\n    $ template -t input.tpml -o output.txt -d data.json\n\n    # Use stdin for template file\n    $ cat input.tmpl | template -o output.txt                   # output txt file\n    $ cat input.tmpl | template -o -                            # output to stdout\n    $ cat input.tmpl | template                                 # output to stdout\n\n    # Use stdin for data file\n    $ cat data.env | template -t input.tmpl -o output.txt -d -  # output txt file\n    $ cat data.env | template -t input.tmpl -d -                # output to stdout\n\nVERSION:\n    0.2.1\n\nWEBSITE:\n    https://github.com/jpbruinsslot/template\t\t\n\nGLOBAL OPTIONS:\n    -t, -template [template-file]     template file\n    -o, -output [output-file]         output file\n    -d, -data [data-file]             data file\n    -h, -help\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpbruinsslot%2Ftemplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjpbruinsslot%2Ftemplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpbruinsslot%2Ftemplate/lists"}