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.") }