Add deprecated ParseMagnetURI
This commit is contained in:
parent
ddd03362f8
commit
0013035c93
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue