daite / angel

simple CLI for searching torrent magnet ๐Ÿ’•

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

example workflow name GoDoc

1. Torrent sites

2. Reference

3. ToDo

4. Sample code

Click to toggle contents of `code`
// Function to update the URL with a maximum number of retries
func updateTorrentURL(key string, url string, maxRetries int, wg *sync.WaitGroup, resultChan chan<- struct {
	key string
	url string
}) {
	defer wg.Done()
	for i := 0; i < maxRetries; i++ {
		if checkURL(url) {
			resultChan <- struct {
				key string
				url string
			}{key, url}
			return
		}
		url = incrementURL(url)
	}
	resultChan <- struct {
		key string
		url string
	}{key, ""} // Indicate failure with an empty string
}

5. How it works (feat.graphviz)

About

simple CLI for searching torrent magnet ๐Ÿ’•

License:MIT License


Languages

Language:Go 100.0%