Grawlr, a simple web crawler written in Go
- Go (version 1.23+)
To download the source code, clone the repository:
git clone git@github.com:HRemonen/Grawlr.git
cd grawlrRun the following command to install Go module dependencies:
go mod tidyThis will install any necessary packages for the project.
For detailed usage instructions, refer to the Usage Documentation.
This project includes tests for various different modules.
To run the tests for a single package, use the command:
go test -v <package name dir>To run all the tests:
go test ./...To ensure that the codebase follows Go best practices and maintain a clean, consistent style, we use golangci-lint, a popular linter aggregator for Go.
First, install golangci-lint by following the official instructions here. You can also install it using go install:
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latestOnce installed, you can run the linter on the project using the following command:
golangci-lint runThis will check the entire codebase for issues and display any linting errors, warnings, or suggestions.
In some cases, the linter can automatically fix issues like formatting errors. To apply fixes automatically, run:
golangci-lint run --fixThe linter is also run on the CI pipeline.