From 04a5d8d95dfb6375f083b33f845c73b688de60e2 Mon Sep 17 00:00:00 2001 From: grdddj Date: Tue, 15 Oct 2024 12:07:16 +0200 Subject: [PATCH] chore: add make style target for gofmt formatting --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 54475015..9c015504 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ PACKAGER = $(shell id -u):$(shell id -g) DOCKER_VERSION = $(shell docker version --format '{{.Client.Version}}') BASE_IMAGE = $$(awk -F= '$$1=="ID" { print $$2 ;}' /etc/os-release):$$(awk -F= '$$1=="VERSION_ID" { print $$2 ;}' /etc/os-release | tr -d '"') NO_CACHE = false -TCMALLOC = +TCMALLOC = PORTABLE = 0 ARGS ?= @@ -80,3 +80,6 @@ clean-bin-image: clean-deb-image: - docker rmi $(DEB_IMAGE) + +style: + find . -name "*.go" -exec gofmt -w {} \;