filesupport

package
v0.0.0-...-73e6ad0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteFile

func DeleteFile(l string, baseDir string) error

Delete a file when is not interesting

func LogToFile

func LogToFile(s string)

Log a string to a temp file

func SaveToFile

func SaveToFile(link *PasteJSON, text string, match string, outputTo string) bool

Save the bin to the output directory: default is '$(pwd)/results'

Types

type PasteJSON

type PasteJSON struct {
	ScrapeURL string `json:"scrape_url,-"`
	FullURL   string `json:"full_url,-"`
	Date      string `json:"date,-"`
	Key       string `json:"key,-"`
	Size      string `json:"size,-"`
	Expire    string `json:"expire,-"`
	Title     string `json:"title,-"`
	Syntax    string `json:"syntax,-"`
	User      string `json:"user,-"`
}

Jump to

Keyboard shortcuts

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