dood

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package dood contains functions that can be used to accurately extract and validate Dood links.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Convert

func Convert(res string) string

Convert takes a slice of Dood links that use varying domains and converts them to an active domain that can be used.

func Delegate

func Delegate(res, source string) ([]models.Entry, error)

Delegate takes a string as an argument and returns a slice of valid Senvid links found within the response (if any) or nil, and an error

func Extract

func Extract(res string) ([]string, error)

Extract returns a slice of all Dood links contained within a string, if any.

func Validate

func Validate(x string) (bool, error)

Validate performs a GET request to the Dood URL and uses the response status code to identify its validity

Types

This section is empty.

Jump to

Keyboard shortcuts

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