{"id":16842389,"url":"https://github.com/adamdecaf/xmlencoderclose","last_synced_at":"2025-03-18T05:27:11.536Z","repository":{"id":173662480,"uuid":"650820097","full_name":"adamdecaf/xmlencoderclose","owner":"adamdecaf","description":"Go linter to check xml.Encoders are closed","archived":false,"fork":false,"pushed_at":"2025-03-06T03:08:10.000Z","size":47,"stargazers_count":0,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-06T04:20:27.479Z","etag":null,"topics":["encoder","go-linter","golangci-lint","xml"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adamdecaf.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}},"created_at":"2023-06-07T22:05:01.000Z","updated_at":"2025-03-06T03:08:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"a7fcbbb2-30e3-4456-889d-71509ab09eb7","html_url":"https://github.com/adamdecaf/xmlencoderclose","commit_stats":null,"previous_names":["adamdecaf/xmlencoderclose"],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamdecaf%2Fxmlencoderclose","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamdecaf%2Fxmlencoderclose/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamdecaf%2Fxmlencoderclose/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamdecaf%2Fxmlencoderclose/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adamdecaf","download_url":"https://codeload.github.com/adamdecaf/xmlencoderclose/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244162373,"owners_count":20408506,"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":["encoder","go-linter","golangci-lint","xml"],"created_at":"2024-10-13T12:45:48.770Z","updated_at":"2025-03-18T05:27:11.514Z","avatar_url":"https://github.com/adamdecaf.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# xmlencoderclose\n\n[![GoDoc](https://godoc.org/github.com/adamdecaf/xmlencoderclose?status.svg)](https://godoc.org/github.com/adamdecaf/xmlencoderclose)\n[![Build Status](https://github.com/adamdecaf/xmlencoderclose/workflows/Go/badge.svg)](https://github.com/adamdecaf/xmlencoderclose/actions)\n[![Coverage Status](https://codecov.io/gh/adamdecaf/xmlencoderclose/branch/master/graph/badge.svg)](https://codecov.io/gh/adamdecaf/xmlencoderclose)\n[![Go Report Card](https://goreportcard.com/badge/github.com/adamdecaf/xmlencoderclose)](https://goreportcard.com/report/github.com/adamdecaf/xmlencoderclose)\n[![Apache 2 License](https://img.shields.io/badge/license-Apache2-blue.svg)](https://raw.githubusercontent.com/adamdecaf/xmlencoderclose/master/LICENSE)\n\nxmlencoderclose is a Go linter to check that `encoding/xml.Encoder` type has its `Close()` method called. This linter is similar to [`bodyclose`](https://github.com/timakin/bodyclose) and [`sqlclosecheck`](https://github.com/ryanrolds/sqlclosecheck) with inspiration from [gostaticanalysis/sqlrows](https://github.com/gostaticanalysis/sqlrows)\n\n## Install\n\n```\ngo get github.com/adamdecaf/xmlencoderclose\n```\n\n## Example\n\n```go\ntype Document struct {\n\tA string `xml:\"a\"`\n}\n\nfunc Encode() (string, error) {\n\tvar buf bytes.Buffer\n\terr := xml.NewEncoder(\u0026buf).Encode(Document{ // want \"Encoder.Close must be called\"\n\t\tA: \"abc123\",\n\t})\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\treturn buf.String(), nil\n}\n```\n\n## Supported and tested platforms\n\n- 64-bit Linux (Ubuntu, Debian), macOS, and Windows\n\n## License\n\nApache License 2.0 - See [LICENSE](LICENSE) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadamdecaf%2Fxmlencoderclose","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadamdecaf%2Fxmlencoderclose","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadamdecaf%2Fxmlencoderclose/lists"}