diff options
Diffstat (limited to 'testSort')
| -rw-r--r-- | testSort/Makefile | 34 | ||||
| -rw-r--r-- | testSort/main.go | 7 |
2 files changed, 41 insertions, 0 deletions
diff --git a/testSort/Makefile b/testSort/Makefile new file mode 100644 index 0000000..50afd9d --- /dev/null +++ b/testSort/Makefile @@ -0,0 +1,34 @@ +VERSION = $(shell git describe --tags) +BUILDTIME = $(shell date +%Y.%m.%d) + +run: clean test.pb.go build + ./testSort + +vet: + @GO111MODULE=off go vet + @echo this go library package builds okay + +build: + GO111MODULE=off go build \ + -ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}" + +install: + GO111MODULE=off go install \ + -ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}" + +goimports: + goimports -w *.go + # // to globally reset paths: + # // gofmt -w -r "go.wit.com/gui -> go.wit.com/gui/gui" . + +redomod: + rm -f go.* + GO111MODULE= go mod init + GO111MODULE= go mod tidy + +reset: + # clear your terminal + reset + +clean: + -rm *.pb.go testSort diff --git a/testSort/main.go b/testSort/main.go new file mode 100644 index 0000000..01a7c39 --- /dev/null +++ b/testSort/main.go @@ -0,0 +1,7 @@ +package main + +import "log" + +func main() { + log.Println("hello testSort") +} |
