{"id":17785051,"url":"https://github.com/eun/goremovelines","last_synced_at":"2025-03-16T04:30:55.621Z","repository":{"id":57497228,"uuid":"121760333","full_name":"Eun/goremovelines","owner":"Eun","description":"Remove leading / trailing blank lines in Go functions, structs, if, switches, blocks.","archived":false,"fork":false,"pushed_at":"2025-02-17T04:27:46.000Z","size":398,"stargazers_count":25,"open_issues_count":3,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-27T05:04:06.685Z","etag":null,"topics":["go","golang","hacktoberfest","tool"],"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/Eun.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","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},"funding":{"github":["Eun"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":"Eun","issuehunt":"eun","otechie":null,"custom":null}},"created_at":"2018-02-16T14:32:37.000Z","updated_at":"2025-01-17T09:28:22.000Z","dependencies_parsed_at":"2023-10-11T10:34:26.929Z","dependency_job_id":"3d1d667e-5f24-453f-aa1d-7852165060a1","html_url":"https://github.com/Eun/goremovelines","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Eun%2Fgoremovelines","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Eun%2Fgoremovelines/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Eun%2Fgoremovelines/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Eun%2Fgoremovelines/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Eun","download_url":"https://codeload.github.com/Eun/goremovelines/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243802944,"owners_count":20350316,"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":["go","golang","hacktoberfest","tool"],"created_at":"2024-10-27T08:23:04.540Z","updated_at":"2025-03-16T04:30:55.096Z","avatar_url":"https://github.com/Eun.png","language":"Go","funding_links":["https://github.com/sponsors/Eun","https://liberapay.com/Eun","https://issuehunt.io/r/eun"],"categories":[],"sub_categories":[],"readme":"# goremovelines\n[![Actions Status](https://github.com/Eun/goremovelines/workflows/push/badge.svg)](https://github.com/Eun/goremovelines/actions)\n[![Coverage Status](https://coveralls.io/repos/github/Eun/goremovelines/badge.svg?branch=master)](https://coveralls.io/github/Eun/goremovelines?branch=master)\n[![PkgGoDev](https://img.shields.io/badge/pkg.go.dev-reference-blue)](https://pkg.go.dev/github.com/Eun/goremovelines)\n[![go-report](https://goreportcard.com/badge/github.com/Eun/goremovelines)](https://goreportcard.com/report/github.com/Eun/goremovelines)\n---\nRemove leading / trailing blank lines in Go functions, structs, if, switches, blocks.\n\n## Installation\n```\ngo install github.com/Eun/goremovelines/cmd/goremovelines@latest\n```\n\n## Usage\n```\nusage: goremovelines [\u003cflags\u003e] [\u003cpath\u003e...]\n\nRemove leading / trailing blank lines in Go functions, structs, if, switches, blocks.\n\nFlags:\n  -h, --help             Show context-sensitive help (also try --help-long and --help-man).\n  -r, --remove=func|struct|if|switch|case|for|interface|block ...  \n                         Remove blank lines for the context (specify it multiple times, e.g.: --remove=func --remove=struct)\n  -w, --toSource         Write result to (source) file instead of stdout\n  -s, --skip=DIR... ...  Skip directories with this name when expanding '...'.\n      --vendor           Enable vendoring support (skips 'vendor' directories and sets GO15VENDOREXPERIMENT=1).\n  -d, --debug            Display debug messages.\n  -v, --version          Show application version.\n\nArgs:\n  [\u003cpath\u003e]  Directories to format. Defaults to \".\". \u003cpath\u003e/... will recurse.\n```\n\n\u003e It is possible to combine it with gofmt/goimport/goreturns using [gomultifmt](https://github.com/Eun/gomultifmt)\n\n```go\npackage main\n\nimport \"fmt\"\n\nfunc main() {\n\n  fmt.Print(\"Hello\")\n  \n  fmt.Print(\"World\")\n\n}\n```\n**will be transformed to**\n\n```go\npackage main\n\nimport \"fmt\"\n\nfunc main() {\n\tfmt.Print(\"Hello\")\n\n\tfmt.Print(\"World\")\n}\n```\n\n## Build History\n[![Build history](https://buildstats.info/github/chart/Eun/goremovelines?branch=master)](https://github.com/Eun/goremovelines/actions)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feun%2Fgoremovelines","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feun%2Fgoremovelines","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feun%2Fgoremovelines/lists"}