Skip to content

Commit

Permalink
Initial setup
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Bogdanovic <[email protected]>
  • Loading branch information
CerealKiller97 committed Jan 12, 2024
1 parent d56a9d9 commit 5fa9d97
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 9 deletions.
10 changes: 6 additions & 4 deletions README.md
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)
28 changes: 28 additions & 0 deletions Taskfile.yml
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
2 changes: 1 addition & 1 deletion doc.go
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// Documentation
package golibrarytemplate
package main
4 changes: 2 additions & 2 deletions go.mod
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
4 changes: 2 additions & 2 deletions main.go
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...")
}

0 comments on commit 5fa9d97

Please sign in to comment.