Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cyb3r-jak3/go_har

GoLang Module for parsing HAR Files
https://github.com/cyb3r-jak3/go_har

Last synced: about 4 hours ago
JSON representation

GoLang Module for parsing HAR Files

Awesome Lists containing this project

README

        

# GO_HAR

![Go](https://github.com/Cyb3r-Jak3/go_har/workflows/Go/badge.svg?branch=master) [![Go Report Card](https://goreportcard.com/badge/github.com/Cyb3r-Jak3/go_har)](https://goreportcard.com/report/github.com/Cyb3r-Jak3/go_har) [![GoDoc](https://godoc.org/github.com/Cyb3r-Jak3/go_har?status.svg)](https://godoc.org/github.com/Cyb3r-Jak3/go_har)

![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/Cyb3r-Jak3/go_har?style=flat-square) ![GitHub](https://img.shields.io/github/license/Cyb3r-Jak3/go_har?style=flat-square)
[![DeepSource](https://deepsource.io/gh/Cyb3r-Jak3/go_har.svg/?label=active+issues&show_trend=true)](https://deepsource.io/gh/Cyb3r-Jak3/go_har/?ref=repository-badge) [![DeepSource](https://deepsource.io/gh/Cyb3r-Jak3/go_har.svg/?label=resolved+issues&show_trend=true)](https://deepsource.io/gh/Cyb3r-Jak3/go_har/?ref=repository-badge)
---

HAR is a GoLang module that parses HTTP Archive files and allows for easy access to pages and entries.

## Requirements

Go 1.16+

#### Support

This module is tested with GO versions 1.16, 1.17, 1.18. It is tested with HAR files from [Firefox](testdata/Firefox.har) and [Chrome](testdata/Chrome.har). PRs containing HAR files from other browsers are welcome.

## Getting started

#### Download

`go get -u github.com/Cyb3r-Jak3/go_har/v2`

#### Using

```golang
import "github.com/Cyb3r-Jak3/go_har/v2"

...
harFile, err := har.ParseHar("")
if err != nil {
log.Fatal(err)
}
```

[example](example/simple/main.go)