{"id":20866350,"url":"https://github.com/edwin-luijten/go_mod_parser","last_synced_at":"2025-07-09T17:06:02.839Z","repository":{"id":57499398,"uuid":"174147697","full_name":"Edwin-Luijten/go_mod_parser","owner":"Edwin-Luijten","description":"Parse go.mod files into structs, this module is extracted from https://github.com/golang/vgo/tree/master/vendor/cmd/go/internal/modfile","archived":false,"fork":false,"pushed_at":"2019-03-07T06:56:52.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-09T17:05:58.797Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Edwin-Luijten.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-03-06T13:11:18.000Z","updated_at":"2019-03-07T06:56:54.000Z","dependencies_parsed_at":"2022-08-28T15:21:51.602Z","dependency_job_id":null,"html_url":"https://github.com/Edwin-Luijten/go_mod_parser","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Edwin-Luijten/go_mod_parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Edwin-Luijten%2Fgo_mod_parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Edwin-Luijten%2Fgo_mod_parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Edwin-Luijten%2Fgo_mod_parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Edwin-Luijten%2Fgo_mod_parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Edwin-Luijten","download_url":"https://codeload.github.com/Edwin-Luijten/go_mod_parser/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Edwin-Luijten%2Fgo_mod_parser/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264502127,"owners_count":23618554,"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":[],"created_at":"2024-11-18T05:57:57.297Z","updated_at":"2025-07-09T17:06:02.778Z","avatar_url":"https://github.com/Edwin-Luijten.png","language":"Go","readme":"# GO mod parser\n\nThis module is extracted from https://github.com/golang/vgo/tree/master/vendor/cmd/go/internal/modfile\n\n## Installation\n``` go get github.com/edwin-luijten/go_mod_parser ```  \n\n## Usage\n\n```go\npackage my_package\n\nimport (\n\t\"github.com/edwin-luijten/go_mod_parser\"\n\t\"io/ioutil\"\n\t\"fmt\"\n\t)\n\nfunc main() {\n    contents, _ := ioutil.ReadFile(\"./go.mod\")\n\t\n    p, err := go_mod_parser.Parse(\"go.mod\", contents, nil)\n    if err != nil {\n       panic(err)\n    }\n    \n    fmt.Println(p.Module.Mod.Path)\n}\n```\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedwin-luijten%2Fgo_mod_parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedwin-luijten%2Fgo_mod_parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedwin-luijten%2Fgo_mod_parser/lists"}