{"id":25914715,"url":"https://github.com/piszmog/go-tw","last_synced_at":"2026-02-21T04:08:40.719Z","repository":{"id":278849647,"uuid":"936975399","full_name":"Piszmog/go-tw","owner":"Piszmog","description":"Go Tool for Tailwind CSS","archived":false,"fork":false,"pushed_at":"2026-01-20T04:25:08.000Z","size":23,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-20T11:41:00.836Z","etag":null,"topics":["go","gotools","tailwindcss"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Piszmog.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2025-02-22T03:32:45.000Z","updated_at":"2026-01-20T04:24:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"f397e1e0-8441-4622-af11-1e02563879c5","html_url":"https://github.com/Piszmog/go-tw","commit_stats":null,"previous_names":["piszmog/go-tw"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/Piszmog/go-tw","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Piszmog%2Fgo-tw","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Piszmog%2Fgo-tw/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Piszmog%2Fgo-tw/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Piszmog%2Fgo-tw/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Piszmog","download_url":"https://codeload.github.com/Piszmog/go-tw/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Piszmog%2Fgo-tw/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28625926,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T02:47:06.670Z","status":"ssl_error","status_checked_at":"2026-01-21T02:45:44.886Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["go","gotools","tailwindcss"],"created_at":"2025-03-03T11:33:30.044Z","updated_at":"2026-01-21T04:01:45.905Z","avatar_url":"https://github.com/Piszmog.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go Tool for Tailwind CSS\n\n\u003e [!NOTE]\n\u003e This project is not officially associated with or endorsed by Tailwind Labs Inc.\n\n`go-tw` is an exectable to make it easier to integrate the [Tailwindcss CLI](https://tailwindcss.com/docs/installation/tailwind-cli) into a \nGo project using the `go tool` directive.\n\nInstead of having to have a separate install for `tailwindcss`, either with `npm` or \nthe executable, a Go project can install and use `tailwindcss` with the `go tool` directive.\n\n## Install\n\nAdd `go-tw` as a Go Tool by running the following command\n\n```shell\ngo get -tool github.com/Piszmog/go-tw\n```\n\n## Run\n\nRun `go-tw` as if it was the `tailwindcss` command. All arguments are piped to the\n`tailwindcss` executable.\n\n```shell\ngo-tw -i ./styles/input.css -o ./dist/assets/css/output@dev.css\n```\n\n### Tailwindcss Executable\n\nWhen `go-tw` runs, it will install `tailwindcss` to your cache, for example `~/Library/Caches/go-tw` on macos.\n\nBy default, `go-tw` will check if a newer version of `tailwindcss` exists. If it does, it will download it and delete the older versions.\n\nTo use a specific version, provide the `-version` flag.\n\n```shell\n ❯  go-tw -h -version v4.0.7\n≈ tailwindcss v4.0.7\n\nUsage:\n  tailwindcss [--input input.css] [--output output.css] [--watch] [options…]\n\nOptions:\n  -i, --input ··········· Input file\n  -o, --output ·········· Output file [default: `-`]\n  -w, --watch ··········· Watch for changes and rebuild as needed\n  -m, --minify ·········· Optimize and minify the output\n      --optimize ········ Optimize the output without minifying\n      --cwd ············· The current working directory [default: `.`]\n  -h, --help ············ Display usage information`\n```\n\n## Logging\n\n`go-tw` has debug logging to help troubleshoot problems. Set the environment variable\n`LOG_LEVEL` to `debug` to see the debug logs.\n\n```shell\nLOG_LEVEL=debug go-tw -h\n```\n\n## Testing\n\n### Unit Tests\n\nRun the unit tests with:\n\n```shell\ngo test ./...\n```\n\n### Integration Tests\n\nIntegration tests verify cross-platform functionality by downloading and executing the real Tailwind CSS binary.\n\n**Run locally:**\n\n```shell\ngo test -v -tags=integration ./...\n```\n\n**CI Testing:**\n\nIntegration tests run automatically in GitHub Actions on:\n- Linux (amd64)\n- macOS (arm64)\n- Windows (amd64)\n\n**Note:** Integration tests download the latest Tailwind CSS binary (~15-20 MB) on first run, then cache it for subsequent runs.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiszmog%2Fgo-tw","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpiszmog%2Fgo-tw","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiszmog%2Fgo-tw/lists"}