{"id":20817378,"url":"https://github.com/golang-infrastructure/go-har","last_synced_at":"2025-03-12T05:43:21.037Z","repository":{"id":120128534,"uuid":"575218507","full_name":"golang-infrastructure/go-har","owner":"golang-infrastructure","description":"HAR（HTTP Archive format）HTTP归档格式文件的Golang解析库","archived":false,"fork":false,"pushed_at":"2022-12-07T07:08:15.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-18T16:11:03.450Z","etag":null,"topics":["har"],"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/golang-infrastructure.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":"2022-12-07T02:31:35.000Z","updated_at":"2024-11-21T14:40:28.000Z","dependencies_parsed_at":"2024-06-12T01:18:41.994Z","dependency_job_id":null,"html_url":"https://github.com/golang-infrastructure/go-har","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/golang-infrastructure%2Fgo-har","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/golang-infrastructure%2Fgo-har/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/golang-infrastructure%2Fgo-har/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/golang-infrastructure%2Fgo-har/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/golang-infrastructure","download_url":"https://codeload.github.com/golang-infrastructure/go-har/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243165500,"owners_count":20246722,"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":["har"],"created_at":"2024-11-17T21:41:36.557Z","updated_at":"2025-03-12T05:43:21.012Z","avatar_url":"https://github.com/golang-infrastructure.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HAR（HTTP Archive format）HTTP归档格式文件的Golang解析库\n\n\n\n# 一、安装\n\n```bash\ngo get -u github.com/golang-infrastructure/go-har\n```\n\n# 二、代码示例\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"github.com/golang-infrastructure/go-har\"\n\t\"os\"\n)\n\nfunc main() {\n\n\tharFilePath := \"./data/www.google.com.har\"\n\n\t// 用法一：解析HAR文件的字节\n\tharFileBytes, err := os.ReadFile(harFilePath)\n\tif err != nil {\n\t\tfmt.Println(err)\n\t\treturn\n\t}\n\tharFile, err := har.ParseHar(harFileBytes)\n\tif err != nil {\n\t\tfmt.Println(err)\n\t\treturn\n\t}\n\tfmt.Println(harFile)\n\n\t// 用法二：给定HAR文件的路径解析它\n\tharFile002, err := har.ParseHarFile(harFilePath)\n\tif err != nil {\n\t\tfmt.Println(err)\n\t\treturn\n\t}\n\tfmt.Println(harFile002)\n\n}\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgolang-infrastructure%2Fgo-har","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgolang-infrastructure%2Fgo-har","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgolang-infrastructure%2Fgo-har/lists"}