WIP - Golang security.txt parser and cli tool
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
cmd
doc
testdata
.gitignore
CHANGELOG.md
README.md
http.go
makefile
security.go
security_test.go

README.md

go-security-txt

A golang parser and cli tool for security.txt

Usage

If you want to use this as a library:

package main

import (
    sectext "github.com/adamdecaf/go-security-txt"
)

func main() {
    addr := "https://securitytxt.org"
    sec, err := sectext.FromUrl(addr)
    if err != nil {
			fmt.Println(err)
    }
    fmt.Println(sec.Contact)
}

Cli

You can use the cli like:

$ security-txt -address https://securitytxt.org
security.txt for https://securitytxt.org
  Contact: https://twitter.com/EdOverflow