Skip to content

roarc0/go-magnet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🧲 Go Magnet

Go Reference Go Report Go Coverage go workflow

This is a zero external dependencies magnet link parser that can be used to extract information from magnet links and create magnet links.

Install 💾

go get github.com/roarc0/go-magnet

Usage 🏄

package main

import (
  "fmt"
  "github.com/roarc0/go-magnet"
)

func main() {
  magnet, err := magnet.Parse("magnet:?...")
  if err != nil {
    fmt.Println(err)
    return
  }

  fmt.Println(magnet)

  // Back to a string
  fmt.Println(magnet.String())
}

Credits ⭐

License 📜

The MIT License (MIT). Please see License File for more information.

About

magnet link parser

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages