Go library to parse magnet link into a struct
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Unbewohnte b895c47c0b initial commit 3 years ago
LICENSE initial commit 3 years ago
README.md initial commit 3 years ago
go.mod initial commit 3 years ago
magnetInfo.go initial commit 3 years ago
magnetInfo_test.go initial commit 3 years ago

README.md

magnet-info

Installation

go get github.com/Unbewohnte/magnet-info

Usage

package main

import (
	"fmt"
	magnetinfo "magnet-info"
)

func main() {
	info, _ := magnetinfo.Parse("magnet:?xt=urn:btih:83918ea4bb488cefd3d8b8b8762597d32aebb4fa&tr=http%3A%2F%2Facademictorrents.com%2Fannounce.php&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337%2Fannounce&tr=udp%3A%2F%2Ftracker.leechers-paradise.org%3A6969")

	fmt.Printf("%+v", info)

    // ...
}