package main
import (
+ "bufio"
"fmt"
+ "io"
+ "io/ioutil"
"log"
"net"
"net/http"
_ "net/http/pprof"
"os"
- "io"
- "io/ioutil"
"strings"
"time"
- "bufio"
-
_ "github.com/anacrolix/envpprof"
"github.com/dustin/go-humanize"
})
defer client.Close()
-
dstName := dstFileName(rootGroup.Pick)
f, err := os.Create(dstName)
<-t.GotInfo()
files := t.Files()
for _, file := range files {
- if file.Path() == rootGroup.Pick {
+ if file.Path() == rootGroup.Pick {
log.Printf("Downloading file: %s", file.Path())
}()
}
-
ticker := time.NewTicker(time.Second)
waitDone:
for {