diff --git a/README.md b/README.md index dea623d..3bfa12c 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ -# Go Library Template +# Redis Mock -[![Testing](https://github.com/nano-interactive/go-library-template/actions/workflows/test.yml/badge.svg?branch=master)](https://github.com/nano-interactive/go-library-template/actions/workflows/test.yml) -[![codecov](https://codecov.io/gh/nano-interactive/go-template-library/branch/master/graph/badge.svg?token=JQTAGQ11DS)](https://codecov.io/gh/nano-interactive/go-template-library) -[![Go Report Card](https://goreportcard.com/badge/github.com/nano-interactive/go-template-library)](https://goreportcard.com/report/github.com/nano-interactive/go-template-library) +[![Testing](https://github.com/nano-interactive/go-library-template/actions/workflows/test.yml/badge.svg?branch=master)](https://github.com/nano-interactive/redis-mock/actions/workflows/test.yml) +[![codecov](https://codecov.io/gh/nano-interactive/go-template-library/branch/master/graph/badge.svg?token=JQTAGQ11DS)](https://codecov.io/gh/nano-interactive/redis-mock) +[![Go Report Card](https://goreportcard.com/badge/github.com/nano-interactive/go-template-library)](https://goreportcard.com/report/github.com/nano-interactive/redis-mock) + +![](https://raw.githubusercontent.com/egonelbre/gophers/master/vector/superhero/lifting-1TB.svg) \ No newline at end of file diff --git a/Taskfile.yml b/Taskfile.yml new file mode 100644 index 0000000..d0fc500 --- /dev/null +++ b/Taskfile.yml @@ -0,0 +1,28 @@ +version: '3' + +tasks: + lint: + cmds: + - golangci-lint run --color "always" -v -j 8 + sec: + cmds: + - @gosec ./... + test: + cmds: + - go test -covermode=atomic -race -coverprofile=coverage.txt -timeout 5m -json -v ./... | gotestfmt -showteststatus + env: + GOMAXPROCS: 4 + cli-tools: + cmds: + - go install github.com/gotesttools/gotestfmt/v2/cmd/gotestfmt@latest + - go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest + - go install github.com/securego/gosec/v2/cmd/gosec@latest + - go install mvdan.cc/gofumpt@latest + update: + cmds: + - go get -u ./... # Updates regular packages + - go get -u -t ./... # Updates Test packages + tidy: + cmds: + - rm -f go.sum + - go mod tidy diff --git a/doc.go b/doc.go index c18290f..84a772f 100644 --- a/doc.go +++ b/doc.go @@ -1,2 +1,2 @@ // Documentation -package golibrarytemplate +package main diff --git a/go.mod b/go.mod index 85d48d2..3ff9270 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ -module github.com/nano-interactive/go-library-template +module github.com/nano-interctive/redis-mock -go 1.19 +go 1.21 diff --git a/main.go b/main.go index 268dfe3..09bf38a 100644 --- a/main.go +++ b/main.go @@ -1,7 +1,7 @@ -package golibrarytemplate +package main import "fmt" -func ExampleFunc() { +func main() { fmt.Println("Start Here...") }