mirror of
https://github.com/dnwSilver/tld.git
synced 2025-04-28 07:56:18 +00:00
🔨 Update development scripts.
This commit is contained in:
parent
0af0886a39
commit
5ebfdfde35
18
Makefile
18
Makefile
@ -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
2
go.mod
@ -1,3 +1,3 @@
|
|||||||
module dnw/tld
|
module github.com/dnwsilver/tld
|
||||||
|
|
||||||
go 1.21.6
|
go 1.21.6
|
||||||
|
@ -0,0 +1,9 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
import (
|
||||||
|
"testing"
|
||||||
|
)
|
||||||
|
|
||||||
|
func FirstFailTest(t *testing.T) {
|
||||||
|
t.Fatalf(`Hello("") = %q, %v, want "", error`)
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user