From 7a981f983606172d6bf05e268ee59b4743aec036 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0=B4=D1=80=20?= =?UTF-8?q?=D0=9A=D0=BE=D0=BB=D0=BE=D1=81=D0=BE=D0=B2?= Date: Sat, 3 Feb 2024 02:42:19 +0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20Update=20development=20scripts.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 9 ++++++++- cmd/tld/tld.go | 1 + 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d51f28a..72f8052 100644 --- a/Makefile +++ b/Makefile @@ -2,18 +2,25 @@ GO_MAIN=./cmd/tld/tld.go GO_TEST=./test +## install: Install missing dependencies. install: go install $(GO_MAIN) +## Run application. run: go run $(GO_MAIN) +## Build application. build: go build $(GO_MAIN) +## Run units tests. test: - go test ${GO_TEST} + go test $(GO_TEST) +## Format code style. format: go fmt $(GO_MAIN) go fmt $(GO_TEST) + +.PHONY: install run build test format diff --git a/cmd/tld/tld.go b/cmd/tld/tld.go index 91cca4f..d5a207a 100644 --- a/cmd/tld/tld.go +++ b/cmd/tld/tld.go @@ -3,5 +3,6 @@ package main import "fmt" func main() { + fmt.Println("Hello, world.") }