{"id":36455186,"url":"https://github.com/golangsam/dotgo","last_synced_at":"2026-01-11T23:02:28.750Z","repository":{"id":57613709,"uuid":"98708085","full_name":"GoLangsam/dotgo","owner":"GoLangsam","description":"An agnostic tool to create `*.go` sources (and other text) given some template(s) - generic types made easy.","archived":false,"fork":false,"pushed_at":"2019-06-20T11:20:43.000Z","size":196,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-20T08:07:39.220Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/GoLangsam.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-07-29T04:24:43.000Z","updated_at":"2020-05-12T10:17:01.000Z","dependencies_parsed_at":"2022-09-10T23:31:36.448Z","dependency_job_id":null,"html_url":"https://github.com/GoLangsam/dotgo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/GoLangsam/dotgo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoLangsam%2Fdotgo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoLangsam%2Fdotgo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoLangsam%2Fdotgo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoLangsam%2Fdotgo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GoLangsam","download_url":"https://codeload.github.com/GoLangsam/dotgo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoLangsam%2Fdotgo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28326166,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T22:11:01.104Z","status":"ssl_error","status_checked_at":"2026-01-11T22:10:58.990Z","response_time":60,"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":[],"created_at":"2026-01-11T23:02:28.152Z","updated_at":"2026-01-11T23:02:28.742Z","avatar_url":"https://github.com/GoLangsam.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dotgo\nAn agnostic tool to create `*.go` sources (and other text) given some template(s) - generic types made easy.\n\n[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md)\n[![Go Report Card](https://goreportcard.com/badge/github.com/GoLangsam/dotgo)](https://goreportcard.com/report/github.com/GoLangsam/dotgo)\n[![Build Status](https://travis-ci.org/GoLangsam/dotgo.svg?branch=master)](https://travis-ci.org/GoLangsam/dotgo)\n[![GoDoc](https://godoc.org/github.com/GoLangsam/dotgo?status.svg)](https://godoc.org/github.com/GoLangsam/dotgo)\n\n## Simplicity ain't easy\n\nMany weeks were spent in order to come up with a tool named `dotgo` which is easy to use.\n\nAnd: `dotgo` offers a simple yet powerful way to generate [go sources](https://golang.org) in particular (and other kinds of texts in general).\n\n## 2017-07-12\nToday [github](https://github.com/) invites us to [Join GitHub in support of the open internet, again](https://github.com/blog/2396-join-github-in-support-of-the-open-internet-again).\n\n*[This](https://www.battleforthenet.com/) is important to us, as is [Open Software](http://www.OpenSoftware.org/)*.\n\nAs are *Freedom* and *Transparency*. And we love to contribute, and to share. Thus:\n\nToday `dotgo` goes public here - in the hope it shall become useful to the community.\n\n## Please be patient\nAs of this writing - some refactoring is still under way in order to achive this, and in order to improve explanations and examples.\n\n( Note: a couple of days ago, an example of what can be achieved was already published [here](https://github.com/GoLangsam/AnyType) )\n\nMore will follow soon - **Thank You** for Your patience!\n\n## Basic Usage\nImagine, You have Your templates and definitions in place. (We'll show You later, how to achieve this with ease.), \n\n`dotgo` just needs to know:\n- the template(s) to be used\n- the location for resulting output file(s).\n\nThus, a simple \n\n\tdotgo templates-dir target-dir\n\nwill do. Or - if these are same, and You already went there, use\n\n\tdotgo .\n\nand the magic shall happen.\n\nHint: It's use is intentionally kept so super-simple in order to allow ease of use, e.g. in Your source files, with the `generate` tool and it's workflow.\n\n## Remarks\n\n### `dotgo` uses `text/template`\n`dotgo` builds heavily on the `text/template` package from the standard library. For reasons to be shared later elswhere.\n\n### `dottxt` - currently: No Need\nAnd, as it's 'go awarness' can be switched off, there is currently no need for a twin such as `dottxt`.\n(This may change, if we feel need to add awarness for go specific stuff such as packages or vendoring.\nIf so, there shall be a plain vanilla `dottxt` - also useful e.g. for `*.md`)\n\n### `dothtml` - coming soon\nNow -as You might now- the standard library provides a second template package: `html/template`. Even so being isomorphic, it has other benefits when applied to xml/html.\nThus, soon after having `dotgo` public and stable, there shall be it's companion `dothtml` - just using the other package.\n\n### same name - different meanings\nWhen I chose the name `dotgo` I was not aware of the website [dotgo.eu](https://www.dotgo.eu/) and it's related events.\nPlease accepty my apologies if this creates any kind of confusion in Your mind.\nAnd *Yes* - I may deserve blames and flames not having taken time to research the name beforehand ...\n\n---\nYour suggestions, remarks, questions and/or contributions are welcome ;-)\n\n---\n## Think deep - code happy - be simple - see clear :-)\n\n---\n## Support on Beerpay\nHey dude! Help me out for a couple of :beers:!\n\n[![Beerpay](https://beerpay.io/GoLangsam/dotgo/badge.svg?style=beer-square)](https://beerpay.io/GoLangsam/dotgo)  [![Beerpay](https://beerpay.io/GoLangsam/dotgo/make-wish.svg?style=flat-square)](https://beerpay.io/GoLangsam/dotgo?focus=wish)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgolangsam%2Fdotgo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgolangsam%2Fdotgo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgolangsam%2Fdotgo/lists"}