{"id":28780169,"url":"https://github.com/romus204/go-tagger.nvim","last_synced_at":"2026-02-15T19:13:28.424Z","repository":{"id":297284418,"uuid":"996302875","full_name":"romus204/go-tagger.nvim","owner":"romus204","description":"Lightweight Neovim plugin to manage struct field tags in Go source files.","archived":false,"fork":false,"pushed_at":"2025-08-20T11:17:14.000Z","size":14,"stargazers_count":12,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-20T13:16:44.317Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Lua","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/romus204.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-04T18:50:29.000Z","updated_at":"2025-08-20T11:14:30.000Z","dependencies_parsed_at":"2025-08-25T08:16:51.108Z","dependency_job_id":null,"html_url":"https://github.com/romus204/go-tagger.nvim","commit_stats":null,"previous_names":["romus204/go-tagger.nvim"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/romus204/go-tagger.nvim","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romus204%2Fgo-tagger.nvim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romus204%2Fgo-tagger.nvim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romus204%2Fgo-tagger.nvim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romus204%2Fgo-tagger.nvim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/romus204","download_url":"https://codeload.github.com/romus204/go-tagger.nvim/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romus204%2Fgo-tagger.nvim/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29487415,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-15T15:33:17.885Z","status":"ssl_error","status_checked_at":"2026-02-15T15:32:53.698Z","response_time":118,"last_error":"SSL_read: 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":"2025-06-17T18:02:46.826Z","updated_at":"2026-02-15T19:13:28.418Z","avatar_url":"https://github.com/romus204.png","language":"Lua","readme":"# go-tagger.nvim\n\nA lightweight Neovim plugin to manage struct field tags in Go source files.\n\nhttps://github.com/user-attachments/assets/a0295f98-7d15-4ab1-852c-8be877cb0fd7\n\n✅ Features:\n- Add new tags (`json`, `xml`, etc.) interactively\n- Convert field names to `snake_case`,`camelCase`,`kebab-case`, `PascalCase`\n- Preserve existing tags\n- Skip unexported (private) fields by default\n- Remove specific tags or all tags from selected lines\n- **Visual mode support for multi-line editing**\n\n---\n\n## 📦 Installation\n\n### [lazy.nvim](https://github.com/folke/lazy.nvim)\n\n```lua\n{\n  \"romus204/go-tagger.nvim\",\n  config = function()\n    require(\"go-tagger\").setup({\n      skip_private = true, -- Skip unexported fields (starting with lowercase)\n      casing = \"camelCase\", -- Global casing setting\n      tags = { -- Per tag setting override\n        json = {\n          casing = \"camelCase\" -- json tags should use camelCase\n        },\n        xml = {\n          casing = \"snake_case\" -- xml tags should use snake_case\n        }\n      }\n    })\n  end,\n}\n```\n\n### packer.nvim\n\n```lua\nuse {\n  \"romus204/go-tagger.nvim\",\n  config = function()\n    require(\"go-tagger\").setup({\n      skip_private = true, -- Skip unexported fields (starting with lowercase)\n      casing = \"camelCase\", -- Global casing setting\n      tags = { -- Per tag setting override\n        json = {\n          casing = \"camelCase\" -- json tags should use camelCase\n        },\n        xml = {\n          casing = \"snake_case\" -- xml tags should use snake_case\n        }\n      }\n    })\n  end,\n}\n```\n\n---\n\n## ⚙️ Configuration\n\nDefault config:\n```lua\nrequire(\"go-tagger\").setup({\n      skip_private = true, -- Skip unexported fields (starting with lowercase)\n      casing = \"snake_case\", -- Global casing setting\n      tags = {} -- Per tag setting override\n})\n```\n\nExample:\n```lua\nrequire(\"go-tagger\").setup({\n      skip_private = false, -- NO Skip unexported fields (starting with lowercase)\n      casing = \"camelCase\", -- Global casing setting\n      tags = { -- Per tag setting override\n        json = {\n          casing = \"camelCase\" -- json tags should use camelCase\n        },\n        xml = {\n          casing = \"snake_case\" -- xml tags should use snake_case\n        }\n      }\n})\n```\n\n\n---\n\n## 🚀 Usage\n\n### Visual Mode Support\n\nYou can use the plugin in **visual mode** to tag or untag multiple lines at once. Just select the fields and run one of the available commands.\n\n---\n\n## 🔧 Commands\n\n### `:AddGoTags`\n\nAdds tags to selected struct fields.\n\n- Works in visual mode over one or more lines.\n- Prompts you to enter tag names, separated by commas (e.g., `json,xml`).\n- Ignores unexported fields if `skip_private = true`.\n\n```vim\n:AddGoTags\n```\n\nYou’ll be prompted:\n\n```\ntag(s): json,xml\n```\n\nResulting output:\n\n```go\nID   int    `json:\"id\" xml:\"id\"`\nName string `json:\"name\" xml:\"name\"`\n```\n\n---\n\n### `:RemoveGoTags`\n\nRemoves tags from selected struct fields.\n\n- Works in visual mode over one or more lines.\n- Prompts you to enter a tag name to remove (e.g., `json`).\n- Leave input blank to remove **all tags**.\n\n```vim\n:RemoveGoTags\n```\n\nPrompt:\n\n```\ntag: json\n```\n\nResult:\n\n```go\nID   int    `xml:\"id\"`\nName string `xml:\"name\"`\n```\n\n---\n\n## 🔑 Example keybindings\n\n```lua\nvim.keymap.set(\"v\", \"\u003cleader\u003eat\", \":AddGoTags\u003cCR\u003e\", { desc = \"Add Go struct tags\", silent = true })\nvim.keymap.set(\"v\", \"\u003cleader\u003ert\", \":RemoveGoTags\u003cCR\u003e\", { desc = \"Remove Go struct tags\", silent = true })\n```\n","funding_links":[],"categories":["Programming Languages Support"],"sub_categories":["Golang"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromus204%2Fgo-tagger.nvim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fromus204%2Fgo-tagger.nvim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromus204%2Fgo-tagger.nvim/lists"}