utils

package
v0.0.0-...-22fef87 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetInput

func GetInput() ([]string, error)

GetInput -> get list of URLs in stdin

func GetTitle

func GetTitle(url string, client *http.Client) (string, error)

GetTitle -> given a URL, get the title of the HTML

Types

type Config

type Config struct {
	SuspiciousTitles []string
	KitsTitles       []string
}

Config file struct

func ParseConfig

func ParseConfig(configFile string) Config

ParseConfig -> parse config file

Jump to

Keyboard shortcuts

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