following gofmt -s

This commit is contained in:
Jesse Portnoy
2023-07-17 14:26:19 +01:00
parent d9ba8dbabb
commit eb804a2dd6
3 changed files with 29 additions and 30 deletions
+6 -6
View File
@@ -4,9 +4,9 @@ import (
"bytes"
"fmt"
"io/ioutil"
"log"
"os"
"strings"
"log"
"github.com/fatih/color"
"github.com/jessp01/highlight"
@@ -22,16 +22,16 @@ func main() {
var syn_dir string
if gopath == "" {
syn_dir = "/etc/highlight"
}else{
syn_dir = gopath + "/src/github.com/jessp01/highlight/syntax_files"
syn_dir = "/etc/highlight"
} else {
syn_dir = gopath + "/src/github.com/jessp01/highlight/syntax_files"
}
syn_dir = os.Getenv("SYNDIR")
var defs []*highlight.Def
err := highlight.ParseSyntaxFiles (syn_dir, &defs)
err := highlight.ParseSyntaxFiles(syn_dir, &defs)
if err != nil {
log.Fatal(err)
log.Fatal(err)
}
highlight.ResolveIncludes(defs)