output

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Version = "v0.4.0"
)

Variables

View Source
var ErrEmptyResult = errors.New("empty result")

Functions

func FormatJSON added in v0.2.0

func FormatJSON(url string, result []string) ([]byte, error)

FormatJSON returns the input as JSON string.

func PrepareJSONOutput added in v0.2.0

func PrepareJSONOutput(out []string) (url string, result []string, err error)

PrepareJSONOutput returns the target URL and the findings.

func ShowBanner

func ShowBanner()

Types

type JSONData added in v0.2.0

type JSONData struct {
	URL       string   `json:"URL,omitempty"`
	CSPResult []string `json:"CSPResult,omitempty"`
}

JSONData.

type JSONResult added in v0.2.0

type JSONResult struct {
	Result []JSONData `json:"Result,omitempty"`
}

JSONResult.

type Result

type Result struct {
	Map   map[string]struct{}
	Mutex *sync.RWMutex
}

func New

func New() Result

func (*Result) Printed

func (o *Result) Printed(result string) bool

Jump to

Keyboard shortcuts

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