🔨 Update development scripts.

This commit is contained in:
Александр Колосов 2024-01-30 03:03:18 +05:00
parent 0af0886a39
commit 5ebfdfde35
3 changed files with 28 additions and 1 deletions

View File

@ -1 +1,19 @@
# note: call scripts from /scripts # 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)

2
go.mod
View File

@ -1,3 +1,3 @@
module dnw/tld module github.com/dnwsilver/tld
go 1.21.6 go 1.21.6

View File

@ -0,0 +1,9 @@
package test
import (
"testing"
)
func FirstFailTest(t *testing.T) {
t.Fatalf(`Hello("") = %q, %v, want "", error`)
}