aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex <alex@scerba.org>2024-05-04 17:28:15 -0400
committerAlex Scerba <alex@scerba.org>2024-08-15 22:54:25 -0500
commitd9fc74778ef86b02f0a743821263db8873417294 (patch)
tree70fe8e895965b2307c62086da28f7944152b0903
parenta70bda379ed3fdd1fe421cfc2606d052f7577dfd (diff)
Add Go dev files.
-rw-r--r--Makefile28
-rw-r--r--go.mod3
2 files changed, 31 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..963a540
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,28 @@
+.DEFAULT_GOAL := run
+
+http_path := ./cmd/http
+bins := ./http
+
+fmt:
+ go fmt $(http_path)
+.PHONY:fmt
+
+lint: fmt
+ golint $(http_path)
+.PHONY:lint
+
+vet: lint
+ go vet $(http_path)
+.PHONY:vet
+
+run: vet
+ go run $(http_path)
+.PHONY:run
+
+build:
+ go build $(http_path)
+.PHONY:build
+
+clean:
+ rm -fv $(bins)
+.PHONY:clean
diff --git a/go.mod b/go.mod
new file mode 100644
index 0000000..19d5bbf
--- /dev/null
+++ b/go.mod
@@ -0,0 +1,3 @@
+module alexscerba.com
+
+go 1.22