From 0013035c934818da72634c90719d5faecfcfbd76 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Mon, 21 Dec 2020 10:16:08 +1100 Subject: [PATCH] Add deprecated ParseMagnetURI --- metainfo/magnet.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/metainfo/magnet.go b/metainfo/magnet.go index e707762e..48dc148e 100644 --- a/metainfo/magnet.go +++ b/metainfo/magnet.go @@ -46,6 +46,9 @@ func (m Magnet) String() string { return u.String() } +// Deprecated: Use ParseMagnetUri. +var ParseMagnetURI = ParseMagnetUri + // ParseMagnetUri parses Magnet-formatted URIs into a Magnet instance func ParseMagnetUri(uri string) (m Magnet, err error) { u, err := url.Parse(uri)