// onlyGo returns whether the ChangedFiles are only go files.
onlyGo returns whether the ChangedFiles are only go files.
// onlyGo returns whether the ChangedFiles are only go files .
func (c ChangedFiles) onlyGo() bool {
	for _, p := range c {
		if !strings.HasSuffix(p, ".go") && p != "go.sum" && p != "go.mod" {
			return false
		}
	}
	return true
}
func ( c ChangedFiles ) onlyGo ( ) bool { for _ , p := range c { if ! strings . HasSuffix ( p , " " ) && p != " " && p != " " { return false } } return true }
onlyGo returns whether the ChangedFiles are only go files.
onlyGo returns whether the ChangedFiles are only go files .