Skip to content
This repository has been archived by the owner. It is now read-only.
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
cmd
 
 
doc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

About

WIP - Golang security.txt parser and cli tool

Resources

Packages

No packages published
You can’t perform that action at this time.