SecurityTxtParser

package module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 25, 2023 License: MIT Imports: 3 Imported by: 1

README

securitytxt-parser

A Security.Txt Parser available as Golang Module

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KV

type KV struct {
	Key   string
	Value string
}

type SecurityTxt

type SecurityTxt struct {
	Contact            []string
	Expires            []string
	Encryption         []string
	Acknowledgments    []string
	PreferredLanguages []string
	Canonical          []string
	Policy             []string
	Hiring             []string
}

func ParseTxt

func ParseTxt(txt string) (SecurityTxt, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL