diff --git a/Makefile b/Makefile deleted file mode 100644 index f91dac6..0000000 --- a/Makefile +++ /dev/null @@ -1,43 +0,0 @@ -# Simple Makefile for a Go project - -# Build the application -all: build test - -build: - @echo "Building..." - - - @go build -o main cmd/api/main.go - -# Run the application -run: - @go run cmd/api/main.go - -# Test the application -test: - @echo "Testing..." - @go test ./... -v - -# Clean the binary -clean: - @echo "Cleaning..." - @rm -f main - -# Live Reload -watch: - @if command -v air > /dev/null; then \ - air; \ - echo "Watching...";\ - else \ - read -p "Go's 'air' is not installed on your machine. Do you want to install it? [Y/n] " choice; \ - if [ "$$choice" != "n" ] && [ "$$choice" != "N" ]; then \ - go install github.com/air-verse/air@latest; \ - air; \ - echo "Watching...";\ - else \ - echo "You chose not to install air. Exiting..."; \ - exit 1; \ - fi; \ - fi - -.PHONY: all build run test clean watch diff --git a/go.mod b/go.mod deleted file mode 100644 index 725bf0d..0000000 --- a/go.mod +++ /dev/null @@ -1,5 +0,0 @@ -module goload - -go 1.23.2 - -require github.com/joho/godotenv v1.5.1 diff --git a/go.sum b/go.sum deleted file mode 100644 index d61b19e..0000000 --- a/go.sum +++ /dev/null @@ -1,2 +0,0 @@ -github.com/joho/godotenv v1.5.1 h1:7eLL/+HRGLY0ldzfGMeQkb7vMd0as4CfYvUVzLqw0N0= -github.com/joho/godotenv v1.5.1/go.mod h1:f4LDr5Voq0i2e/R5DDNOoa2zzDfwtkZa6DnEwAbqwq4=