mirror of
https://github.com/rwinkhart/go-highlite.git
synced 2026-08-28 04:46:30 -04:00
Detect go based on header
This commit is contained in:
@@ -24,7 +24,7 @@ Below is a recap of the main changes made since:
|
||||
|
||||
## Installation
|
||||
|
||||
```
|
||||
```sh
|
||||
$ go get github.com/jessp01/gohighlight
|
||||
```
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@ filetype: go
|
||||
|
||||
detect:
|
||||
filename: "\\.go$"
|
||||
header: "^package\\s.*"
|
||||
|
||||
rules:
|
||||
# Conditionals and control flow
|
||||
|
||||
Reference in New Issue
Block a user