Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/asankov/security-txt-parser
- Owner: asankov
- License: mit
- Created: 2022-09-05T23:35:59.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-30T21:09:29.000Z (about 1 year ago)
- Last Synced: 2024-11-30T21:04:30.569Z (about 1 month ago)
- Topics: go, security, security-txt
- Language: Go
- Homepage:
- Size: 23.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: security/errors.go
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
}
```