From 5ebfdfde35dc268ccab457e3b0d285f342b6b5b0 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: Tue, 30 Jan 2024 03:03:18 +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 | 18 ++++++++++++++++++ go.mod | 2 +- test/test.go | 9 +++++++++ 3 files changed, 28 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f1873ed..d51f28a 100644 --- a/Makefile +++ b/Makefile @@ -1 +1,19 @@ # note: call scripts from /scripts +GO_MAIN=./cmd/tld/tld.go +GO_TEST=./test + +install: + go install $(GO_MAIN) + +run: + go run $(GO_MAIN) + +build: + go build $(GO_MAIN) + +test: + go test ${GO_TEST} + +format: + go fmt $(GO_MAIN) + go fmt $(GO_TEST) diff --git a/go.mod b/go.mod index a946a60..410c895 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ -module dnw/tld +module github.com/dnwsilver/tld go 1.21.6 diff --git a/test/test.go b/test/test.go index e69de29..474f047 100644 --- a/test/test.go +++ b/test/test.go @@ -0,0 +1,9 @@ +package test + +import ( + "testing" +) + +func FirstFailTest(t *testing.T) { + t.Fatalf(`Hello("") = %q, %v, want "", error`) +}