{"id":15387295,"url":"https://github.com/rhysd/gofmtrlx","last_synced_at":"2025-04-15T18:30:45.219Z","repository":{"id":57491590,"uuid":"80920397","full_name":"rhysd/gofmtrlx","owner":"rhysd","description":"(a bit) relaxed gofmt","archived":false,"fork":false,"pushed_at":"2018-03-15T02:34:12.000Z","size":36,"stargazers_count":23,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-29T00:33:48.117Z","etag":null,"topics":["formatter","golang"],"latest_commit_sha":null,"homepage":"https://github.com/golang/go/issues/18939","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rhysd.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-04T13:16:39.000Z","updated_at":"2025-02-06T14:37:37.000Z","dependencies_parsed_at":"2022-08-31T01:51:03.044Z","dependency_job_id":null,"html_url":"https://github.com/rhysd/gofmtrlx","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhysd%2Fgofmtrlx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhysd%2Fgofmtrlx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhysd%2Fgofmtrlx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhysd%2Fgofmtrlx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rhysd","download_url":"https://codeload.github.com/rhysd/gofmtrlx/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249128893,"owners_count":21217237,"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":["formatter","golang"],"created_at":"2024-10-01T14:53:32.559Z","updated_at":"2025-04-15T18:30:44.900Z","avatar_url":"https://github.com/rhysd.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"gofmtrlx: Relaxed gofmt\n=======================\n\nThis is a fork of [gofmt](https://golang.org/cmd/gofmt/).\n\nThis project is being rebased continuously on original `gofmt` (as long as I'm using `gofmtrlx`).\n\n## What is a problem?\n\ngofmt can't format a code which contains syntax error. For example,\n\n```go\npackage main\n\nfunc main() {\n\ts := []int{\n\t\t1,\n\t\t2,\n\t\t3\n\t}\n}\n```\n\nThis code can't be formatted because there is no trailing comma at line 6.\n\n## How did gofmtrlx solve the problem?\n\nActually, Go's parser can parse this without bad AST node. So gofmt can format the code with fixing syntax error.\n\ngofmtrlx ignores syntax error if there is no bad node in AST. In above code, gofmtrlx can fill up trailing comma\non formatting it.\n\n## Installation and usage\n\n```\ngo get -u github.com/rhysd/gofmtrlx\n```\n\nUsage is the same as `gofmt` command.\n\n## License\n\nAll codes are licensed the same license as original gofmt.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frhysd%2Fgofmtrlx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frhysd%2Fgofmtrlx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frhysd%2Fgofmtrlx/lists"}