Sfoglia il codice sorgente

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 anni fa
parent
commit
0666312dc8
1 ha cambiato i file con 0 aggiunte e 2 eliminazioni
  1. 0 2
      go/stars/stars.go

+ 0 - 2
go/stars/stars.go

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