Skip to content
This repository was archived by the owner on Feb 17, 2025. It is now read-only.

Commit 0bbf46d

Browse files
committed
Release v0.1.0
0 parents  commit 0bbf46d

24 files changed

+1851
-0
lines changed

.gitattributes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
* text=auto eol=lf
2+
*.{cmd,[cC][mM][dD]} text eol=crlf
3+
*.{bat,[bB][aA][tT]} text eol=crlf

.github/dependabot.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
# Maintain dependencies for Go
9+
- package-ecosystem: "gomod"
10+
directory: "/"
11+
schedule:
12+
interval: "weekly"
13+
14+
# Maintain dependencies for build tools
15+
- package-ecosystem: "gomod"
16+
directory: "/build"
17+
schedule:
18+
interval: "weekly"
19+
20+
# Maintain dependencies for GitHub Actions
21+
- package-ecosystem: "github-actions"
22+
directory: "/"
23+
schedule:
24+
interval: "weekly"

.github/pull_request_template.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
## Why
2+
3+
> Why this pull request was created? Explain the problem that this pull request is trying to solve.
4+
5+
## What
6+
7+
> What does this pull request contain? Explain what is this pull request changing.
8+
9+
## Checklist
10+
11+
- [ ] `CHANGELOG.md` is updated.
12+
- [ ] The code changes follow [Effective Go](https://golang.org/doc/effective_go).

.github/workflows/build.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: build
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
workflow_dispatch:
9+
10+
jobs:
11+
ci-build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- uses: actions/setup-go@v2
16+
with:
17+
go-version: 1.16
18+
- run: ./goyek.sh
19+
- name: Upload coverage
20+
uses: actions/upload-artifact@v2
21+
with:
22+
name: coverage
23+
path: coverage.*
24+
- name: Upload coverage to Codecov
25+
uses: codecov/codecov-action@v1
26+
with:
27+
file: ./coverage.out
28+
29+
compatibility:
30+
strategy:
31+
fail-fast: false
32+
matrix:
33+
go-version: ['1.11', '1.12', '1.13', '1.14', '1.15', '1.16']
34+
runs-on: ubuntu-latest
35+
steps:
36+
- uses: actions/checkout@v2
37+
- uses: actions/setup-go@v2
38+
with:
39+
go-version: ${{ matrix.go-version }}
40+
- run: go test -race ./...

.gitignore

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# MacOS DS_Store files
2+
.DS_Store
3+
4+
# Binaries for programs and plugins
5+
*.exe
6+
*.exe~
7+
*.dll
8+
*.so
9+
*.dylib
10+
11+
# Test binary, built with `go test -c`
12+
*.test
13+
14+
# Output of the go coverage tool, specifically when used with LiteIDE
15+
*.out
16+
coverage.html
17+
18+
# Dependency directories (remove the comment below to include it)
19+
#vendor/
20+
21+
# Visual Studio Code files
22+
.vscode/*
23+
!.vscode/settings.json
24+
!.vscode/tasks.json
25+
!.vscode/launch.json
26+
!.vscode/extensions.json
27+
*.code-workspace
28+
.history/
29+
30+
# GoLand and IntelliJ IDEA files
31+
.idea/
32+
33+
# env files that usually contain secrets or local config
34+
.env
35+
.envrc

.golangci.yml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
linters-settings:
2+
goimports:
3+
local-prefixes: github.com/pellared/fluentassert
4+
golint:
5+
min-confidence: 0
6+
govet:
7+
check-shadowing: true
8+
misspell:
9+
locale: US
10+
nolintlint:
11+
allow-leading-space: false # require machine-readable nolint directives (with no leading space)
12+
allow-unused: false # report any unused nolint directives
13+
require-explanation: true # require an explanation for nolint directives
14+
require-specific: false # don't require nolint directives to be specific about which linter is being skipped
15+
16+
linters:
17+
# please, do not use `enable-all`: it's deprecated and will be removed soon.
18+
# inverted configuration with `enable-all` and `disable` is not scalable during updates of golangci-lint
19+
disable-all: true
20+
enable:
21+
- deadcode
22+
- errcheck
23+
- gosimple
24+
- govet
25+
- ineffassign
26+
- staticcheck
27+
- structcheck
28+
- typecheck
29+
- unused
30+
- varcheck
31+
- bodyclose
32+
- depguard
33+
- dogsled
34+
- dupl
35+
- exportloopref
36+
- funlen
37+
- gochecknoglobals
38+
- gochecknoinits
39+
- gocognit
40+
- goconst
41+
- gocritic
42+
- gocyclo
43+
- godot
44+
- gofmt
45+
- gofumpt
46+
- goimports
47+
- golint
48+
- gomnd
49+
- goprintffuncname
50+
- gosec
51+
- lll
52+
- misspell
53+
- nakedret
54+
- noctx
55+
- nolintlint
56+
- rowserrcheck
57+
- sqlclosecheck
58+
- stylecheck
59+
- unconvert
60+
- unparam
61+
- whitespace
62+
- errorlint
63+
- tparallel
64+
- wrapcheck
65+
66+
issues:
67+
# enable issues excluded by default
68+
exclude-use-default: false

.vscode/extensions.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"recommendations": [
3+
"golang.Go"
4+
]
5+
}

.vscode/launch.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"name": "Launch",
9+
"type": "go",
10+
"request": "launch",
11+
"mode": "auto",
12+
"program": "${fileDirname}",
13+
"env": {},
14+
"args": []
15+
}
16+
]
17+
}

.vscode/settings.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
// gopls with gofumpt and import ordering
3+
"go.useLanguageServer": true,
4+
"gopls": {
5+
"gofumpt": true,
6+
},
7+
"[go]": {
8+
"editor.formatOnSave": true,
9+
"editor.codeActionsOnSave": {
10+
"source.organizeImports": true,
11+
},
12+
},
13+
"[go.mod]": {
14+
"editor.formatOnSave": true,
15+
"editor.codeActionsOnSave": {
16+
"source.organizeImports": true,
17+
},
18+
},
19+
20+
// golangci-lint
21+
"go.lintTool": "golangci-lint",
22+
"go.lintFlags": [
23+
"--fast"
24+
]
25+
}

.vscode/tasks.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
// See https://go.microsoft.com/fwlink/?LinkId=733558
3+
// for the documentation about the tasks.json format
4+
"version": "2.0.0",
5+
"tasks": [
6+
{
7+
"label": "dev",
8+
"type": "shell",
9+
"command": "./goyek.sh",
10+
"problemMatcher": [
11+
"$go"
12+
],
13+
"group": {
14+
"kind": "build",
15+
"isDefault": true
16+
}
17+
}
18+
]
19+
}

0 commit comments

Comments
 (0)