Detect go based on header

This commit is contained in:
Jesse Portnoy
2023-07-29 03:45:08 +01:00
parent 9e20d6efc7
commit ae80bdd9b7
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ Below is a recap of the main changes made since:
## Installation
```
```sh
$ go get github.com/jessp01/gohighlight
```
+1
View File
@@ -2,6 +2,7 @@ filetype: go
detect:
filename: "\\.go$"
header: "^package\\s.*"
rules:
# Conditionals and control flow