generated from nano-interactive/go-library-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Stefan Bogdanovic <[email protected]>
- Loading branch information
1 parent
d56a9d9
commit 5fa9d97
Showing
5 changed files
with
39 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
// Documentation | ||
package golibrarytemplate | ||
package main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
package golibrarytemplate | ||
package main | ||
|
||
import "fmt" | ||
|
||
func ExampleFunc() { | ||
func main() { | ||
fmt.Println("Start Here...") | ||
} |