Skip to content

Commit

Permalink
chore: update licence and make (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
nrwiersma authored Sep 1, 2023
1 parent 06034e5 commit 6894d09
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
2 changes: 1 addition & 1 deletion LICENCE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2021 Nicholas Wiersma
Copyright (c) 2023 Nicholas Wiersma

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
24 changes: 23 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,26 @@
include github.com/hamba/make/golang
# Format all files
fmt:
@echo "==> Formatting source"
@gofmt -s -w $(shell find . -type f -name '*.go' -not -path "./vendor/*")
@echo "==> Done"
.PHONY: fmt

# Tidy the go.mod file
tidy:
@echo "==> Cleaning go.mod"
@go mod tidy
@echo "==> Done"
.PHONY: tidy

# Run all tests
test:
@go test -cover -race ./...
.PHONY: test

# Lint the project
lint:
@golangci-lint run ./...
.PHONY: lint

# Run benchmarks
bench:
Expand Down

0 comments on commit 6894d09

Please sign in to comment.