SecurityTxtParser

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 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 `json:"contact"`
	Expires            []string `json:"expires"`
	Encryption         []string `json:"encryption"`
	Acknowledgments    []string `json:"acknowledgements"`
	PreferredLanguages []string `json:"preferred-languages"`
	Canonical          []string `json:"canonical"`
	Policy             []string `json:"policy"`
	Hiring             []string `json:"hiring"`
}

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