Skip to content

Commit 86cb67c

Browse files
update and lint main.go (#6)
1 parent 820d1af commit 86cb67c

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

cmd/goignore/main.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//go:generate go run github.com/hacktivist123/goignore/cmd/goignore
1+
//go:generate go run github.com/hacktivist123/goignore/
22
package main
33

44
import (
@@ -12,14 +12,14 @@ import (
1212
)
1313

1414
var extensions = map[string][]string{
15-
"golang": {".go"},
15+
"golang": {".go"},
1616
"javascript": {".js", ".ts", ".tsx"},
17-
"python": {".py"},
18-
"c++": {".cpp", ".h"},
19-
"rust": {".rs"},
20-
"ruby": {".rb"},
21-
"c": {".c"},
22-
"haskell": {".hs"},
17+
"python": {".py"},
18+
"c++": {".cpp", ".h"},
19+
"rust": {".rs"},
20+
"ruby": {".rb"},
21+
"c": {".c"},
22+
"haskell": {".hs"},
2323
}
2424

2525
var language string
@@ -106,7 +106,7 @@ func detectLanguage() string {
106106
continue
107107
}
108108
ext := filepath.Ext(file.Name())
109-
for lang, exts := range extensions{
109+
for lang, exts := range extensions {
110110
for _, e := range exts {
111111
if ext == e {
112112
return lang

0 commit comments

Comments
 (0)