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`) +}