Add deprecated ParseMagnetURI

This commit is contained in:
Matt Joiner 2020-12-21 10:16:08 +11:00
parent ddd03362f8
commit 0013035c93
1 changed files with 3 additions and 0 deletions

View File

@ -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)