Hi, this is my first project in GO where the objective was to make some simple linter rules for LaTeX files.
(Requires GO installed on local machine)
If you just want to build the program for the native operating system simply stand in the main.go directory (this one) and run the bash command go build
.
MacOS
to compile for MacOS run:
GOOS=darwin GOARCH=amd64 go build -o main.exe main.go
You might need to do chmod +x main.exe before.
Linux
To compile for Linux run the bash command:
GOOS=linux GOARCH=amd64 go build -o main.exe main.go
Windows
To compile for windows machines run the bash command:
GOOS=windows GOARCH=amd64 go build -o main.exe main.go
To run the program simply do ./[PathToBinary] [PATH TO TEX FILE]
.
In the Bin folder are some compiled programs, they name the operating system and the architecture they run on.
If you would like to change the settings of the program, simply edit the settings.json file.