diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..512b018 --- /dev/null +++ b/.gitignore @@ -0,0 +1,27 @@ +# Binaries +*.exe +*.exe~ +*.dll +*.so +*.dylib + +# Test binary +*.test + +# Output of the go coverage tool +*.out + +# Dependency directories +vendor/ + +# Go build cache +$(GOPATH)/pkg/ + +# Build artifacts +build/ + +# IDE +.idea/ +.vscode/ +*.swp +*.swo diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..6de38a8 --- /dev/null +++ b/Makefile @@ -0,0 +1,17 @@ +.PHONY: build run test clean + +APP_NAME := testbed2 +BUILD_DIR := build + +build: + go build -o $(BUILD_DIR)/$(APP_NAME) . + +run: build + ./$(BUILD_DIR)/$(APP_NAME) + +test: + go test ./... + +clean: + rm -rf $(BUILD_DIR) + go clean -cache