initial vendor commit
This commit is contained in:
1 parent
747c805a82
commit
21e1fb3451
660 files changed
+133146
No files matched your search
@@ -0,0 +1,25 @@
|
||||
// Test of stuttery names.
|
||||
|
||||
// Package donut ...
|
||||
package donut
|
||||
|
||||
// DonutMaker makes donuts.
|
||||
type DonutMaker struct{} // MATCH /donut\.DonutMaker.*stutter/
|
||||
|
||||
// DonutRank computes the ranking of a donut.
|
||||
func DonutRank(d Donut) int { // MATCH /donut\.DonutRank.*stutter/
|
||||
return 0
|
||||
}
|
||||
|
||||
// Donut is a delicious treat.
|
||||
type Donut struct{} // ok because it is the whole name
|
||||
|
||||
// Donuts are great, aren't they?
|
||||
type Donuts []Donut // ok because it didn't start a new word
|
||||
|
||||
type donutGlaze int // ok because it is unexported
|
||||
|
||||
// DonutMass reports the mass of a donut.
|
||||
func (d *Donut) DonutMass() (grams int) { // okay because it is a method
|
||||
return 38
|
||||
}
|
||||
Reference in new issue
Block a user