Remove get from func names

pull/5544/head
duohedron 2019-10-08 09:28:17 +02:00
parent a4f9594db1
commit a4fbd5714f
2 changed files with 2 additions and 5 deletions

View File

@ -43,7 +43,7 @@ func init() {
func main() { func main() {
flag.Parse() flag.Parse()
refs := getRefs(*boilerplatedir) refs := boilerplateRefs(*boilerplatedir)
if len(refs) == 0 { if len(refs) == 0 {
log.Fatal("no references in ", *boilerplatedir) log.Fatal("no references in ", *boilerplatedir)
} }
@ -60,7 +60,7 @@ func main() {
This function is to populate the refs variable with the This function is to populate the refs variable with the
different boilerplate/template for different extension. different boilerplate/template for different extension.
*/ */
func getRefs(dir string) map[string][]byte { func boilerplateRefs(dir string) map[string][]byte {
refs := make(map[string][]byte) refs := make(map[string][]byte)
files, _ := filepath.Glob(dir + "/*.txt") files, _ := filepath.Glob(dir + "/*.txt")
for _, filename := range files { for _, filename := range files {

View File

@ -1,3 +0,0 @@
module k8s.io/minikube/hack/boilerplate
go 1.12