Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/asankov/security-txt-parser

A simple Go library for parsing security.txt files
https://github.com/asankov/security-txt-parser

go security security-txt

Last synced: 30 days ago
JSON representation

A simple Go library for parsing security.txt files

Awesome Lists containing this project

README

        

# security-txt-parser

A simple library for parsing security.txt files

## Download

```sh
go get github.com/asankov/security-txt-parser
```

## Usage

```go
import (
"file"

"github.com/asankov/security-txt-parser/security"
)

func main() {
file, err := os.Open("security.txt")
if err != nil {
// handle error
}

defer file.Close()

txt, err = security.Parse(file)
if err != nil {
// handle error
}

// use txt
}
```