7 "github.com/anacrolix/tagflag"
9 "github.com/anacrolix/torrent/metainfo"
15 mi, err := metainfo.Load(os.Stdin)
17 fmt.Fprintf(os.Stderr, "error reading metainfo from stdin: %s", err)
20 info, err := mi.UnmarshalInfo()
22 fmt.Fprintf(os.Stderr, "error unmarshalling info: %s", err)
26 fmt.Fprintf(os.Stdout, "%s\n", mi.Magnet(info.Name, mi.HashInfoBytes()).String())