link

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// MagnetPrefix is the prefix of magnet links.
	MagnetPrefix = "magnet:?"
)

Variables

This section is empty.

Functions

func Hash

func Hash(link string) string

Hash the magnet link's hash is infoHash, other link's hash is the sha1 hash of the link, in lowercase

func Simplify

func Simplify(raw string) (simple string)

Simplify this link and remove useless content. Keep only the xt parameter of the magnet link.

Types

This section is empty.

Jump to

Keyboard shortcuts

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