{"id":36687782,"url":"https://github.com/goark/utf8bom","last_synced_at":"2026-01-12T11:16:21.365Z","repository":{"id":62867396,"uuid":"561670187","full_name":"goark/utf8bom","owner":"goark","description":"Strip leading UTF-8 BOM","archived":false,"fork":false,"pushed_at":"2022-11-04T11:42:27.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-09-25T09:32:56.810Z","etag":null,"topics":[],"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/goark.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":"2022-11-04T08:10:17.000Z","updated_at":"2022-11-04T11:48:16.000Z","dependencies_parsed_at":"2022-11-08T06:48:52.830Z","dependency_job_id":null,"html_url":"https://github.com/goark/utf8bom","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/goark/utf8bom","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goark%2Futf8bom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goark%2Futf8bom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goark%2Futf8bom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goark%2Futf8bom/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/goark","download_url":"https://codeload.github.com/goark/utf8bom/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goark%2Futf8bom/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28338970,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T10:58:46.209Z","status":"ssl_error","status_checked_at":"2026-01-12T10:58:42.742Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":[],"created_at":"2026-01-12T11:16:20.557Z","updated_at":"2026-01-12T11:16:21.360Z","avatar_url":"https://github.com/goark.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# utf8bom -- Strip leading UTF-8 BOM (Byte Order Mark)\n\n[![check vulns](https://github.com/goark/utf8bom/workflows/vulns/badge.svg)](https://github.com/goark/utf8bom/actions)\n[![lint status](https://github.com/goark/utf8bom/workflows/lint/badge.svg)](https://github.com/goark/utf8bom/actions)\n[![GitHub license](http://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/goark/utf8bom/master/LICENSE)\n[![GitHub release](http://img.shields.io/github/release/goark/utf8bom.svg)](https://github.com/goark/utf8bom/releases/latest)\n\nThis package is forked from [github.com/spkg/bom](https://github.com/spkg/bom) package.\n\n## Usage\n\n### Import\n\n```go\nimport \"github.com/goark/utf8bom\"\n```\n\n### Strip leading UTF-8 BOM\n\n```go\nrc, err := func(path string) (io.ReadCloser, error) {\n    file, err := os.Open(path)\n    if err != nil {\n        return nil, err\n    }\n    return utf8bom.Strip(file), nil\n}(\"testdata/sample.txt\")\nif err != nil {\n    return\n}\ndefer rc.Close()\n\nb, err := io.ReadAll(rc)\nif err != nil {\n    return\n}\nfmt.Println(string(b))\n// Output:\n// hello\n```\n\n[utf8bom]: https://github.com/goark/utf8bom \"Strip leading UTF-8 BOM\"\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoark%2Futf8bom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoark%2Futf8bom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoark%2Futf8bom/lists"}