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
|
3 years ago | |
---|---|---|
LICENSE | 3 years ago | |
README.md | 3 years ago | |
go.mod | 3 years ago | |
magnetInfo.go | 3 years ago | |
magnetInfo_test.go | 3 years ago |
README.md
magnet-info
Parse a magnet link into a struct
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)
// ...
}