{"id":42855937,"url":"https://github.com/miroslav-matejovsky/winfileinfo","last_synced_at":"2026-01-30T12:20:44.132Z","repository":{"id":278887216,"uuid":"937069980","full_name":"miroslav-matejovsky/winfileinfo","owner":"miroslav-matejovsky","description":"go library to retrieve win file information","archived":false,"fork":false,"pushed_at":"2025-12-13T03:50:18.000Z","size":57,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-14T17:51:07.164Z","etag":null,"topics":["devops","fileinfo","golang","winapi","windows"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/miroslav-matejovsky/winfileinfo","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/miroslav-matejovsky.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-02-22T09:02:10.000Z","updated_at":"2025-12-13T03:50:11.000Z","dependencies_parsed_at":"2025-02-23T14:26:17.875Z","dependency_job_id":null,"html_url":"https://github.com/miroslav-matejovsky/winfileinfo","commit_stats":null,"previous_names":["miroslav-matejovsky/winfiledetails","miroslav-matejovsky/winfileinfo"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/miroslav-matejovsky/winfileinfo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miroslav-matejovsky%2Fwinfileinfo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miroslav-matejovsky%2Fwinfileinfo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miroslav-matejovsky%2Fwinfileinfo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miroslav-matejovsky%2Fwinfileinfo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/miroslav-matejovsky","download_url":"https://codeload.github.com/miroslav-matejovsky/winfileinfo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miroslav-matejovsky%2Fwinfileinfo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28912811,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-30T12:13:43.263Z","status":"ssl_error","status_checked_at":"2026-01-30T12:13:22.389Z","response_time":66,"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":["devops","fileinfo","golang","winapi","windows"],"created_at":"2026-01-30T12:20:41.848Z","updated_at":"2026-01-30T12:20:44.126Z","avatar_url":"https://github.com/miroslav-matejovsky.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# winfileinfo\n\n`winfileinfo` is a Go module for retrieving file version and file time information on Windows.\n\n## Installation\n\nTo install the module, use `go get`:\n\n```sh\ngo get github.com/miroslav-matejovsky/winfileinfo\n```\n\n## Usage\n\n### Retrieving File Version Information\n\nYou can retrieve the file version information using the `WinFileInfo` struct.\n\n```go\npackage main\n\nimport (\n    \"fmt\"\n    \"log\"\n\n    \"github.com/miroslav-matejovsky/winfileinfo\"\n)\n\nfunc main() {\n    file := `C:\\Windows\\System32\\notepad.exe`\n    wf, err := winfileinfo.NewWinFile(file)\n    if err != nil {\n        log.Fatalf(\"Error creating WinFile: %v\", err)\n    }\n\n    fi, err := wf.GetFileInfo()\n    if err != nil {\n        log.Fatalf(\"Error getting file info: %v\", err)\n    }\n\n    fmt.Printf(\"File Version: %s\\n\", fi.FileVersion)\n    fmt.Printf(\"Product Version: %s\\n\", fi.ProductVersion)\n}\n```\n\n### Retrieving File Time Information\n\nYou can retrieve the file time information using the `WinFileTime` struct.\n\n```go\npackage main\n\nimport (\n    \"fmt\"\n    \"log\"\n\n    \"github.com/miroslav-matejovsky/winfileinfo\"\n)\n\nfunc main() {\n    file := `C:\\Windows\\System32\\notepad.exe`\n    wf, err := winfileinfo.NewWinFile(file)\n    if err != nil {\n        log.Fatalf(\"Error creating WinFile: %v\", err)\n    }\n\n    ft, err := wf.GetFileTime()\n    if err != nil {\n        log.Fatalf(\"Error getting file time: %v\", err)\n    }\n\n    fmt.Printf(\"Creation Time: %s\\n\", ft.CreationTime)\n    fmt.Printf(\"Last Access Time: %s\\n\", ft.LastAccessTime)\n    fmt.Printf(\"Last Write Time: %s\\n\", ft.LastWriteTime)\n}\n```\n\n## Testing\n\nTo run the tests, use the `go test` command:\n\n```sh\ngo test ./...\n```\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiroslav-matejovsky%2Fwinfileinfo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmiroslav-matejovsky%2Fwinfileinfo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiroslav-matejovsky%2Fwinfileinfo/lists"}