{"id":16603736,"url":"https://github.com/visualfc/goembed","last_synced_at":"2026-02-15T15:15:34.788Z","repository":{"id":57564707,"uuid":"335779612","full_name":"visualfc/goembed","owner":"visualfc","description":"golang go:embed parse package","archived":false,"fork":false,"pushed_at":"2022-09-19T00:32:54.000Z","size":47,"stargazers_count":6,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-16T03:53:37.037Z","etag":null,"topics":["embed","go","golang"],"latest_commit_sha":null,"homepage":"","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/visualfc.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":"2021-02-03T23:07:00.000Z","updated_at":"2025-01-22T10:01:03.000Z","dependencies_parsed_at":"2023-01-18T13:40:11.982Z","dependency_job_id":null,"html_url":"https://github.com/visualfc/goembed","commit_stats":null,"previous_names":["visualfc/embed"],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/visualfc/goembed","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/visualfc%2Fgoembed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/visualfc%2Fgoembed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/visualfc%2Fgoembed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/visualfc%2Fgoembed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/visualfc","download_url":"https://codeload.github.com/visualfc/goembed/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/visualfc%2Fgoembed/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264324669,"owners_count":23590932,"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":["embed","go","golang"],"created_at":"2024-10-12T00:52:36.988Z","updated_at":"2026-02-15T15:15:34.784Z","avatar_url":"https://github.com/visualfc.png","language":"Go","readme":"# goembed\ngoembed is Golang go:embed parse package\n\n[![Go](https://github.com/visualfc/goembed/workflows/Go/badge.svg)](https://github.com/visualfc/goembed/actions/workflows/go.yml)\n\n\n### demo\n```\npackage main\n\nimport (\n\t\"fmt\"\n\t\"go/ast\"\n\t\"go/build\"\n\t\"go/parser\"\n\t\"go/token\"\n\t\"path/filepath\"\n\n\t\"github.com/visualfc/goembed\"\n)\n\nfunc main() {\n\tpkg, err := build.Import(\"github.com/visualfc/goembed\", \"\", 0)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tfset := token.NewFileSet()\n\tvar files []*ast.File\n\tfor _, file := range pkg.TestGoFiles {\n\t\tf, err := parser.ParseFile(fset, filepath.Join(pkg.Dir, file), nil, 0)\n\t\tif err != nil {\n\t\t\tpanic(err)\n\t\t}\n\t\tfiles = append(files, f)\n\t}\n\tems,err := goembed.CheckEmbed(pkg.TestEmbedPatternPos, fset, files)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tr := goembed.NewResolve()\n\tfor _, em := range ems {\n\t\tfiles, err := r.Load(pkg.Dir, fset, em)\n\t\tif err != nil {\n\t\t\tpanic(err)\n\t\t}\n\t\tfor _, f := range files {\n\t\t\tfmt.Println(f.Name, f.Data, f.Hash)\n\t\t}\n\t}\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvisualfc%2Fgoembed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvisualfc%2Fgoembed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvisualfc%2Fgoembed/lists"}