Просмотр исходного кода

Remove unused userName config variable

Removed in favor of more flexible reading from stdin.  A different
program does the fetching.  (`unpaginate` is one option.  The format
also allows non-GitHub repos, provided the JSON objects have the
`full_name` and `git_url` fields.)
Lucas Stadler лет назад: 10
Родитель
Сommit
0666312dc8
1 измененных файлов с 0 добавлено и 2 удалено
  1. 0 2
      go/stars/stars.go

+ 0 - 2
go/stars/stars.go

14
)
14
)
15
15
16
var config struct {
16
var config struct {
17
	userName    string
18
	directory   string
17
	directory   string
19
	concurrency int
18
	concurrency int
20
}
19
}
21
20
22
func init() {
21
func init() {
23
	flag.StringVar(&config.userName, "user", "heyLu", "The GitHub user to fetch stars for")
24
	flag.StringVar(&config.directory, "directory", "github-stars", "The directory to store the repos in")
22
	flag.StringVar(&config.directory, "directory", "github-stars", "The directory to store the repos in")
25
	flag.IntVar(&config.concurrency, "concurrency", 10, "The number of repos to update concurrently")
23
	flag.IntVar(&config.concurrency, "concurrency", 10, "The number of repos to update concurrently")
26
}
24
}