{"id":21323183,"url":"https://github.com/schwarzit/go-template","last_synced_at":"2025-09-11T11:36:00.641Z","repository":{"id":37273920,"uuid":"407207118","full_name":"SchwarzIT/go-template","owner":"SchwarzIT","description":"go/template is a tool for jumpstarting production-ready Golang projects quickly.","archived":false,"fork":false,"pushed_at":"2024-09-16T08:56:35.000Z","size":1182,"stargazers_count":200,"open_issues_count":23,"forks_count":29,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-09-08T20:54:41.965Z","etag":null,"topics":["go","golang","hacktoberfest","scaffolding","template"],"latest_commit_sha":null,"homepage":"","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/SchwarzIT.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-09-16T14:57:41.000Z","updated_at":"2025-08-24T12:06:55.000Z","dependencies_parsed_at":"2022-07-14T05:20:34.416Z","dependency_job_id":"efe68f55-27ea-42d4-a78c-9a6a7a121c94","html_url":"https://github.com/SchwarzIT/go-template","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/SchwarzIT/go-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SchwarzIT%2Fgo-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SchwarzIT%2Fgo-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SchwarzIT%2Fgo-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SchwarzIT%2Fgo-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SchwarzIT","download_url":"https://codeload.github.com/SchwarzIT/go-template/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SchwarzIT%2Fgo-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274625881,"owners_count":25320009,"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","status":"online","status_checked_at":"2025-09-11T02:00:13.660Z","response_time":74,"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","hacktoberfest","scaffolding","template"],"created_at":"2024-11-21T20:21:17.324Z","updated_at":"2025-09-11T11:36:00.583Z","avatar_url":"https://github.com/SchwarzIT.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `go/template`\n\n[![SIT](https://img.shields.io/badge/SIT-awesome-blueviolet.svg)](https://jobs.schwarz)\n[![CI](https://github.com/SchwarzIT/go-template/actions/workflows/main.yml/badge.svg)](https://github.com/SchwarzIT/go-template/actions/workflows/main.yml)\n[![Go Report Card](https://goreportcard.com/badge/github.com/SchwarzIT/go-template)](https://goreportcard.com/report/github.com/SchwarzIT/go-template)\n[![Go Reference](https://pkg.go.dev/badge/github.com/schwarzit/go-template.svg)](https://pkg.go.dev/github.com/schwarzit/go-template)\n\n`go/template` provides a **blueprint** for production-ready Go project layouts.\n\n![go/template logo](docs/gotemplate.png)\n\u003e Credit to Renée French for the [Go Gopher logo](https://go.dev/blog/gopher)\n\u003e Credit to Go Authors for the [official Go logo](https://go.dev/blog/go-brand)\n\n## Batteries included\n\n- Makefile for most common tasks\n- optimized Dockerfile\n- golangci-lint default configuration\n- pre-push git hook to ensure no linting issues\n- gRPC support\n- folder structure based on [github.com/golang-standards/project-layout](https://github.com/golang-standards/project-layout)\n- enforced default packages\n  - `log/slog` for logging\n  - `go.uber.org/automaxprocs` to be safe in container environments (see [this article](https://martin.baillie.id/wrote/gotchas-in-the-go-network-packages-defaults/#bonus-gomaxprocs-containers-and-the-cfs) for more information)\n\n## Usage\n\n### Installation\n\n#### From source\n\nIf you have Go 1.21+, you can directly install by running:\n\n```bash\ngo install github.com/schwarzit/go-template/cmd/gt@latest\n```\n\n\u003e Based on your go configuration the `go/template` binary can be found in `$GOPATH/bin` or `$HOME/go/bin` in case `$GOPATH` is not set.\n\u003e Make sure to add the respective directory to your `$PATH`.\n\u003e [For more information see go docs for further information](https://golang.org/ref/mod#go-install). Run `go env` to view your current configuration.\n\n#### From the released binaries\n\nDownload the desired version for your operating system and processor architecture from the [go-template releases page](https://github.com/SchwarzIT/go-template/releases).\nMake the file executable and place it in a directory available in your `$PATH`.\n\n### Preconditions\n\n`go/template`'s `gt` CLI requires at least the following executables on `$PATH` to run succesfully:\n\n- Go \u003e= 1.21\n- Git\n\nThese are used at the end of `gt new`'s execution to initialize Git and Go modules in the newly created project repository.\n\n### Initialize your repo from the template\n\n[![asciicast](https://asciinema.org/a/441624.svg)](https://asciinema.org/a/441624?autoplay=1\u0026speed=2\u0026size=medium)\n\nUse the template to generate your repo:\n\n```bash\ngt new\n```\n\nInitialize the project:\n\n```bash\ncd \u003cyour project\u003e\nmake all\n```\n\n## Options\n\nTo get an overview of all options that can be set for the template you can take a look at the [options docs](docs/options.md), run the CLI or check out the [testing example values file](pkg/gotemplate/testdata/values.yml).\n\n## Contribution\n\nIf you want to contribute to `go/template` please have a look at our [contribution guidelines](CONTRIBUTING.md).\n\n## Releasing\n\nThe release process is described in the [release docs](docs/release.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschwarzit%2Fgo-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fschwarzit%2Fgo-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschwarzit%2Fgo-template/lists"}