func Download(client bittorrent.BitTorrent, path, torrentPath string, config map[string]string) (err error) { if err = client.Download(path, torrentPath, config); err != nil { return } return }
func CreateTorrent(bt bittorrent.BitTorrent, path, torrentPath string, trackers []string) (err error) { if bt.CreateTorrent(path, torrentPath, trackers); err != nil { return } return }