@@ -33,6 +33,11 @@ type Repo struct {
33
33
// GitHub. If MirrorToGitHub is true, this is the
34
34
// destination.
35
35
gitHubRepo string
36
+
37
+ // WebsiteDesc is the description of the repo for showing on
38
+ // https://golang.org/pkg/#subrepo.
39
+ // It should be plain text. Hostnames may be auto-linkified.
40
+ WebsiteDesc string
36
41
}
37
42
38
43
// ByGerritProject maps from a Gerrit project name ("go", "net", etc)
@@ -53,31 +58,31 @@ func init() {
53
58
addMirrored ("sublime-config" )
54
59
55
60
x ("arch" )
56
- x ("benchmarks" )
57
- x ("blog" )
58
- x ("build" )
59
- x ("crypto" )
60
- x ("debug" )
61
+ x ("benchmarks" , desc ( "benchmarks to measure Go as it is developed" ) )
62
+ x ("blog" , desc ( "blog.golang.org's implementation" ) )
63
+ x ("build" , desc ( "build.golang.org's implementation" ) )
64
+ x ("crypto" , desc ( "additional cryptography packages" ) )
65
+ x ("debug" , desc ( "an experimental debugger for Go" ) )
61
66
x ("example" , noDash )
62
- x ("exp" )
63
- x ("image" )
67
+ x ("exp" , desc ( "experimental and deprecated packages (handle with care; may change without warning)" ) )
68
+ x ("image" , desc ( "additional imaging packages" ) )
64
69
x ("lint" , noDash )
65
- x ("mobile" )
70
+ x ("mobile" , desc ( "experimental support for Go on mobile platforms" ) )
66
71
x ("mod" )
67
- x ("net" )
72
+ x ("net" , desc ( "additional networking packages" ) )
68
73
x ("oauth2" )
69
- x ("perf" )
74
+ x ("perf" , desc ( "packages and tools for performance measurement, storage, and analysis" ) )
70
75
x ("playground" , noDash )
71
- x ("review" )
76
+ x ("review" , desc ( "a tool for working with Gerrit code reviews" ) )
72
77
x ("scratch" , noDash )
73
- x ("sync" )
74
- x ("sys" )
78
+ x ("sync" , desc ( "additional concurrency primitives" ) )
79
+ x ("sys" , desc ( "packages for making system calls" ) )
75
80
x ("talks" )
76
81
x ("term" )
77
- x ("text" )
78
- x ("time" )
79
- x ("tools" )
80
- x ("tour" , noDash )
82
+ x ("text" , desc ( "packages for working with text" ) )
83
+ x ("time" , desc ( "additional time packages" ) )
84
+ x ("tools" , desc ( "godoc, goimports, gorename, and other tools" ) )
85
+ x ("tour" , noDash , desc ( "tour.golang.org's implementation" ) )
81
86
x ("vgo" , noDash )
82
87
x ("website" )
83
88
x ("xerrors" , noDash )
@@ -103,6 +108,8 @@ func coordinatorCanBuild(r *Repo) { r.CoordinatorCanBuild = true }
103
108
104
109
func importPath (v string ) modifyRepo { return func (r * Repo ) { r .ImportPath = v } }
105
110
111
+ func desc (v string ) modifyRepo { return func (r * Repo ) { r .WebsiteDesc = v } }
112
+
106
113
// addMirrored adds a repo that's on Gerrit and mirrored to GitHub.
107
114
func addMirrored (proj string , opts ... modifyRepo ) {
108
115
repo := & Repo {
0 commit comments